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

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

Issue 1164023002: Slow Reports: Set a minimum time in between reports, and check for OTR sessions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Buildfixes 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/content_browser.gypi ('k') | content/public/browser/tracing_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_TRACING_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_TRACING_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_TRACING_DELEGATE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/common/content_export.h"
10
11 namespace base {
12 class Time;
13 }
9 14
10 namespace net { 15 namespace net {
11 class URLRequestContextGetter; 16 class URLRequestContextGetter;
12 } 17 }
13 18
14 namespace content { 19 namespace content {
20 struct BackgroundTracingConfig;
15 class TraceUploader; 21 class TraceUploader;
16 22
17 // This can be implemented by the embedder to provide functionality for the 23 // This can be implemented by the embedder to provide functionality for the
18 // about://tracing WebUI. 24 // about://tracing WebUI.
19 class TracingDelegate { 25 class CONTENT_EXPORT TracingDelegate {
20 public: 26 public:
21 virtual ~TracingDelegate() {} 27 virtual ~TracingDelegate() {}
22 28
23 // Provide trace uploading functionality; see trace_uploader.h. 29 // Provide trace uploading functionality; see trace_uploader.h.
24 virtual scoped_ptr<TraceUploader> GetTraceUploader( 30 virtual scoped_ptr<TraceUploader> GetTraceUploader(
25 net::URLRequestContextGetter* request_context) = 0; 31 net::URLRequestContextGetter* request_context) = 0;
32
33 // This can be used to veto a particular background tracing scenario.
34 virtual bool IsAllowedToBeginBackgroundScenario(
35 const BackgroundTracingConfig& config,
36 bool requires_anonymized_data);
37
38 virtual bool IsAllowedToEndBackgroundScenario(
39 const content::BackgroundTracingConfig& config,
40 bool requires_anonymized_data);
26 }; 41 };
27 42
28 } // namespace content 43 } // namespace content
29 44
30 #endif // CONTENT_PUBLIC_BROWSER_TRACING_DELEGATE_H_ 45 #endif // CONTENT_PUBLIC_BROWSER_TRACING_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/tracing_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698