OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_TRACING_CONTROLLER_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_TRACING_CONTROLLER_H_ |
6 #define CONTENT_PUBLIC_BROWSER_TRACING_CONTROLLER_H_ | 6 #define CONTENT_PUBLIC_BROWSER_TRACING_CONTROLLER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/debug/trace_event.h" | |
13 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/trace_event/trace_event.h" |
14 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 | 17 |
18 class TracingController; | 18 class TracingController; |
19 | 19 |
20 // TracingController is used on the browser processes to enable/disable | 20 // TracingController is used on the browser processes to enable/disable |
21 // trace status and collect trace data. Only the browser UI thread is allowed | 21 // trace status and collect trace data. Only the browser UI thread is allowed |
22 // to interact with the TracingController object. All callbacks are called on | 22 // to interact with the TracingController object. All callbacks are called on |
23 // the UI thread. | 23 // the UI thread. |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 // watch event callback. | 178 // watch event callback. |
179 virtual bool CancelWatchEvent() = 0; | 179 virtual bool CancelWatchEvent() = 0; |
180 | 180 |
181 protected: | 181 protected: |
182 virtual ~TracingController() {} | 182 virtual ~TracingController() {} |
183 }; | 183 }; |
184 | 184 |
185 } // namespace content | 185 } // namespace content |
186 | 186 |
187 #endif // CONTENT_PUBLIC_BROWSER_TRACING_CONTROLLER_H_ | 187 #endif // CONTENT_PUBLIC_BROWSER_TRACING_CONTROLLER_H_ |
OLD | NEW |