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

Side by Side Diff: content/public/browser/profiler_subscriber.h

Issue 10077001: [UMA] Use proper C++ objects to serialize tracked_objects across process boundaries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix yet another IWYU in the chromeos/ code... Created 8 years, 8 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CONTENT_PUBLIC_BROWSER_PROFILER_SUBSCRIBER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_PROFILER_SUBSCRIBER_H_
6 #define CONTENT_PUBLIC_BROWSER_PROFILER_SUBSCRIBER_H_ 6 #define CONTENT_PUBLIC_BROWSER_PROFILER_SUBSCRIBER_H_
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "content/public/common/process_type.h"
9 10
10 namespace base { 11 namespace tracked_objects {
11 class DictionaryValue; 12 struct ProcessDataSnapshot;
12 } 13 }
13 14
14 namespace content { 15 namespace content {
15 16
16 // Objects interested in receiving profiler data derive from ProfilerSubscriber. 17 // Objects interested in receiving profiler data derive from ProfilerSubscriber.
17 class CONTENT_EXPORT ProfilerSubscriber { 18 class CONTENT_EXPORT ProfilerSubscriber {
18 public: 19 public:
19 virtual ~ProfilerSubscriber() {} 20 virtual ~ProfilerSubscriber() {}
20 21
21 // Send number of pending processes to subscriber. |end| is set to true if it 22 // Send number of pending processes to subscriber. |end| is set to true if it
22 // is the last time. This is called on UI thread. 23 // is the last time. This is called on the UI thread.
23 virtual void OnPendingProcesses(int sequence_number, 24 virtual void OnPendingProcesses(int sequence_number,
24 int pending_processes, 25 int pending_processes,
25 bool end) = 0; 26 bool end) = 0;
26 27
27 // Send profiler_data back to subscriber. 28 // Send |profiler_data| back to subscriber.
28 // This is called on UI thread. 29 // This is called on the UI thread.
29 virtual void OnProfilerDataCollected( 30 virtual void OnProfilerDataCollected(
30 int sequence_number, 31 int sequence_number,
31 base::DictionaryValue* profiler_data) = 0; 32 const tracked_objects::ProcessDataSnapshot& profiler_data,
33 ProcessType process_type) = 0;
32 }; 34 };
33 35
34 } // namespace content 36 } // namespace content
35 37
36 #endif // CONTENT_PUBLIC_BROWSER_PROFILER_SUBSCRIBER_H_ 38 #endif // CONTENT_PUBLIC_BROWSER_PROFILER_SUBSCRIBER_H_
OLDNEW
« no previous file with comments | « content/public/browser/profiler_controller.h ('k') | remoting/host/plugin/host_script_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698