OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_PUBLIC_BROWSER_PROFILER_SUBSCRIBER_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_PROFILER_SUBSCRIBER_H_ |
| 7 |
| 8 #include "content/common/content_export.h" |
| 9 |
| 10 namespace base { |
| 11 class DictionaryValue; |
| 12 } |
| 13 |
| 14 namespace content { |
| 15 |
| 16 // Objects interested in receiving profiler data derive from ProfilerSubscriber. |
| 17 class CONTENT_EXPORT ProfilerSubscriber { |
| 18 public: |
| 19 virtual ~ProfilerSubscriber() {} |
| 20 |
| 21 // 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 virtual void OnPendingProcesses(int sequence_number, |
| 24 int pending_processes, |
| 25 bool end) = 0; |
| 26 |
| 27 // Send profiler_data back to subscriber. |
| 28 // This is called on UI thread. |
| 29 virtual void OnProfilerDataCollected( |
| 30 int sequence_number, |
| 31 base::DictionaryValue* profiler_data) = 0; |
| 32 }; |
| 33 |
| 34 } // namespace content |
| 35 |
| 36 #endif // CONTENT_PUBLIC_BROWSER_PROFILER_SUBSCRIBER_H_ |
OLD | NEW |