Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(318)

Side by Side Diff: chrome/browser/task_profiler/task_profiler_data_serializer.h

Issue 9702014: [UMA] Use proper C++ objects to serialize tracked_objects across process boundaries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_TASK_PROFILER_TASK_PROFILER_DATA_SERIALIZER_H_ 5 #ifndef CHROME_BROWSER_TASK_PROFILER_TASK_PROFILER_DATA_SERIALIZER_H_
6 #define CHROME_BROWSER_TASK_PROFILER_TASK_PROFILER_DATA_SERIALIZER_H_ 6 #define CHROME_BROWSER_TASK_PROFILER_TASK_PROFILER_DATA_SERIALIZER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h"
10
9 class FilePath; 11 class FilePath;
10 12
11 namespace task_profiler { 13 namespace task_profiler {
12 14
13 // This class collects task profiler data and serializes it to a file. The file 15 // This class collects task profiler data and serializes it to a file. The file
14 // format is compatible with the about:profiler UI. 16 // format is compatible with the about:profiler UI.
15 class TaskProfilerDataSerializer { 17 class TaskProfilerDataSerializer {
16 public: 18 public:
17 bool WriteToFile(const FilePath &path); 19 TaskProfilerDataSerializer() {}
20 bool WriteToFile(const FilePath& path);
21
22 private:
23 DISALLOW_COPY_AND_ASSIGN(TaskProfilerDataSerializer);
18 }; 24 };
19 25
20 } // namespace task_profiler 26 } // namespace task_profiler
21 27
22 #endif // CHROME_BROWSER_TASK_PROFILER_TASK_PROFILER_DATA_SERIALIZER_H_ 28 #endif // CHROME_BROWSER_TASK_PROFILER_TASK_PROFILER_DATA_SERIALIZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698