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

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

Issue 2833873003: WIP: The tracing service prototype
Patch Set: sync Created 3 years, 7 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
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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 12
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/trace_event/trace_event.h" 15 #include "base/trace_event/trace_event.h"
16 #include "base/values.h" 16 #include "base/values.h"
17 #include "content/common/content_export.h" 17 #include "content/common/content_export.h"
18 #include "content/public/browser/tracing_delegate.h" 18 #include "content/public/browser/tracing_delegate.h"
19 #include "services/service_manager/public/cpp/connector.h"
19 20
20 namespace content { 21 namespace content {
21 22
22 class TracingController; 23 class TracingController;
23 24
24 // TracingController is used on the browser processes to enable/disable 25 // TracingController is used on the browser processes to enable/disable
25 // tracing status and collect trace data. Only the browser UI thread is allowed 26 // tracing status and collect trace data. Only the browser UI thread is allowed
26 // to interact with the TracingController object. All callbacks are called on 27 // to interact with the TracingController object. All callbacks are called on
27 // the UI thread. 28 // the UI thread.
28 class TracingController { 29 class TracingController {
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // Check if the tracing system is tracing 138 // Check if the tracing system is tracing
138 virtual bool IsTracing() const = 0; 139 virtual bool IsTracing() const = 0;
139 140
140 protected: 141 protected:
141 virtual ~TracingController() {} 142 virtual ~TracingController() {}
142 }; 143 };
143 144
144 } // namespace content 145 } // namespace content
145 146
146 #endif // CONTENT_PUBLIC_BROWSER_TRACING_CONTROLLER_H_ 147 #endif // CONTENT_PUBLIC_BROWSER_TRACING_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698