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 |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 // process. | 192 // process. |
193 typedef base::Callback<void()> WatchEventCallback; | 193 typedef base::Callback<void()> WatchEventCallback; |
194 virtual bool SetWatchEvent(const std::string& category_name, | 194 virtual bool SetWatchEvent(const std::string& category_name, |
195 const std::string& event_name, | 195 const std::string& event_name, |
196 const WatchEventCallback& callback) = 0; | 196 const WatchEventCallback& callback) = 0; |
197 | 197 |
198 // Cancel the watch event. If tracing is enabled, this may race with the | 198 // Cancel the watch event. If tracing is enabled, this may race with the |
199 // watch event callback. | 199 // watch event callback. |
200 virtual bool CancelWatchEvent() = 0; | 200 virtual bool CancelWatchEvent() = 0; |
201 | 201 |
| 202 // Check if the tracing system is recording |
| 203 virtual bool IsRecording() const = 0; |
| 204 |
202 protected: | 205 protected: |
203 virtual ~TracingController() {} | 206 virtual ~TracingController() {} |
204 }; | 207 }; |
205 | 208 |
206 } // namespace content | 209 } // namespace content |
207 | 210 |
208 #endif // CONTENT_PUBLIC_BROWSER_TRACING_CONTROLLER_H_ | 211 #endif // CONTENT_PUBLIC_BROWSER_TRACING_CONTROLLER_H_ |
OLD | NEW |