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

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

Issue 985773002: Introducing phased profiling framework (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@write_to_file
Patch Set: Fixing Android compile errors. Created 5 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
« no previous file with comments | « content/public/browser/browser_child_process_host.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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 tracked_objects { 11 namespace tracked_objects {
11 struct ProcessDataSnapshot; 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 // Send number of pending processes to subscriber. |end| is set to true if it 20 // Send number of pending processes to subscriber. |end| is set to true if it
20 // is the last time. This is called on the UI thread. 21 // is the last time. This is called on the UI thread.
21 virtual void OnPendingProcesses(int sequence_number, 22 virtual void OnPendingProcesses(int sequence_number,
22 int pending_processes, 23 int pending_processes,
23 bool end) = 0; 24 bool end) = 0;
24 25
25 // Send |profiler_data| back to subscriber. 26 // Send |profiler_data| back to subscriber.
26 // This is called on the UI thread. 27 // This is called on the UI thread.
27 virtual void OnProfilerDataCollected( 28 virtual void OnProfilerDataCollected(
28 int sequence_number, 29 int sequence_number,
29 const tracked_objects::ProcessDataSnapshot& profiler_data, 30 const tracked_objects::ProcessDataSnapshot& profiler_data,
30 int process_type) = 0; 31 content::ProcessType process_type) = 0;
31 32
32 protected: 33 protected:
33 virtual ~ProfilerSubscriber() {} 34 virtual ~ProfilerSubscriber() {}
34 }; 35 };
35 36
36 } // namespace content 37 } // namespace content
37 38
38 #endif // CONTENT_PUBLIC_BROWSER_PROFILER_SUBSCRIBER_H_ 39 #endif // CONTENT_PUBLIC_BROWSER_PROFILER_SUBSCRIBER_H_
OLDNEW
« no previous file with comments | « content/public/browser/browser_child_process_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698