| OLD | NEW |
| 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_CONTROLLER_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_PROFILER_CONTROLLER_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_PROFILER_CONTROLLER_H_ | 6 #define CONTENT_PUBLIC_BROWSER_PROFILER_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/tracked_objects.h" | 11 #include "base/tracked_objects.h" |
| 12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
| 13 | 13 |
| 14 | |
| 15 namespace base { | |
| 16 class DictionaryValue; | |
| 17 } | |
| 18 | |
| 19 namespace content { | 14 namespace content { |
| 20 | 15 |
| 21 class ProfilerSubscriber; | 16 class ProfilerSubscriber; |
| 22 | 17 |
| 23 // ProfilerController is used on the browser process to collect profiler data. | 18 // ProfilerController is used on the browser process to collect profiler data. |
| 24 // Only the browser UI thread is allowed to interact with the ProfilerController | 19 // Only the browser UI thread is allowed to interact with the ProfilerController |
| 25 // object. | 20 // object. |
| 26 class CONTENT_EXPORT ProfilerController { | 21 class CONTENT_EXPORT ProfilerController { |
| 27 public: | 22 public: |
| 28 // Returns the ProfilerController object for the current process, or nullptr | 23 // Returns the ProfilerController object for the current process, or nullptr |
| (...skipping 19 matching lines...) Expand all Loading... |
| 48 int current_profiling_phase) = 0; | 43 int current_profiling_phase) = 0; |
| 49 | 44 |
| 50 // Contact child processes and notify them that the |profiling_phase| has | 45 // Contact child processes and notify them that the |profiling_phase| has |
| 51 // completed. | 46 // completed. |
| 52 virtual void OnProfilingPhaseCompleted(int profiling_phase) = 0; | 47 virtual void OnProfilingPhaseCompleted(int profiling_phase) = 0; |
| 53 }; | 48 }; |
| 54 | 49 |
| 55 } // namespace content | 50 } // namespace content |
| 56 | 51 |
| 57 #endif // CONTENT_PUBLIC_BROWSER_PROFILER_CONTROLLER_H_ | 52 #endif // CONTENT_PUBLIC_BROWSER_PROFILER_CONTROLLER_H_ |
| OLD | NEW |