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

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

Issue 1171813002: [Startup Tracing] Remove |is_recording_| in devtool tracing_handler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review fix Created 5 years, 6 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/browser/tracing/tracing_controller_impl.cc ('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 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
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_
OLDNEW
« no previous file with comments | « content/browser/tracing/tracing_controller_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698