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

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

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "content/public/common/process_type.h" 9 #include "content/public/common/process_type.h"
10 10
11 class FilePath;
12
13 namespace base { 11 namespace base {
14 class DictionaryValue; 12 class DictionaryValue;
13 class FilePath;
15 } 14 }
16 15
17 namespace tracked_objects { 16 namespace tracked_objects {
18 struct ProcessDataSnapshot; 17 struct ProcessDataSnapshot;
19 } 18 }
20 19
21 namespace task_profiler { 20 namespace task_profiler {
22 21
23 // This class collects task profiler data and serializes it to a file. The file 22 // This class collects task profiler data and serializes it to a file. The file
24 // format is compatible with the about:profiler UI. 23 // format is compatible with the about:profiler UI.
25 class TaskProfilerDataSerializer { 24 class TaskProfilerDataSerializer {
26 public: 25 public:
27 TaskProfilerDataSerializer() {} 26 TaskProfilerDataSerializer() {}
28 27
29 // Writes the contents of |process_data| and |process_type| into |dictionary|. 28 // Writes the contents of |process_data| and |process_type| into |dictionary|.
30 static void ToValue(const tracked_objects::ProcessDataSnapshot& process_data, 29 static void ToValue(const tracked_objects::ProcessDataSnapshot& process_data,
31 content::ProcessType process_type, 30 content::ProcessType process_type,
32 base::DictionaryValue* dictionary); 31 base::DictionaryValue* dictionary);
33 32
34 bool WriteToFile(const FilePath& path); 33 bool WriteToFile(const base::FilePath& path);
35 34
36 private: 35 private:
37 DISALLOW_COPY_AND_ASSIGN(TaskProfilerDataSerializer); 36 DISALLOW_COPY_AND_ASSIGN(TaskProfilerDataSerializer);
38 }; 37 };
39 38
40 } // namespace task_profiler 39 } // namespace task_profiler
41 40
42 #endif // CHROME_BROWSER_TASK_PROFILER_TASK_PROFILER_DATA_SERIALIZER_H_ 41 #endif // CHROME_BROWSER_TASK_PROFILER_TASK_PROFILER_DATA_SERIALIZER_H_
OLDNEW
« no previous file with comments | « chrome/browser/system_monitor/udev_util_linux.h ('k') | chrome/browser/themes/browser_theme_pack.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698