Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 <string> | |
| 9 | |
| 8 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 9 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
| 10 | 12 |
| 11 namespace base { | 13 namespace base { |
| 12 class Time; | 14 class Time; |
| 13 } | 15 } |
| 14 | 16 |
| 15 namespace net { | 17 namespace net { |
| 16 class URLRequestContextGetter; | 18 class URLRequestContextGetter; |
| 17 } | 19 } |
| 18 | 20 |
| 19 namespace content { | 21 namespace content { |
| 20 struct BackgroundTracingConfig; | 22 struct BackgroundTracingConfig; |
| 21 class TraceUploader; | 23 class TraceUploader; |
| 22 | 24 |
| 23 // This can be implemented by the embedder to provide functionality for the | 25 // This can be implemented by the embedder to provide functionality for the |
| 24 // about://tracing WebUI. | 26 // about://tracing WebUI. |
| 25 class CONTENT_EXPORT TracingDelegate { | 27 class CONTENT_EXPORT TracingDelegate { |
| 26 public: | 28 public: |
| 27 virtual ~TracingDelegate() {} | 29 virtual ~TracingDelegate() {} |
| 28 | 30 |
| 29 // Provide trace uploading functionality; see trace_uploader.h. | 31 // Provide trace uploading functionality; see trace_uploader.h. |
| 30 virtual scoped_ptr<TraceUploader> GetTraceUploader( | 32 virtual scoped_ptr<TraceUploader> GetTraceUploader( |
| 31 net::URLRequestContextGetter* request_context) = 0; | 33 net::URLRequestContextGetter* request_context) = 0; |
| 32 | 34 |
| 35 virtual bool GetChromeVersion(std::string*) = 0; | |
|
oystein (OOO til 10th of July)
2015/06/12 18:14:17
We have this in the content client already, I'm pr
shatch
2015/06/12 19:05:54
Sweet, tried to find where I could get it in conte
| |
| 36 | |
| 33 // This can be used to veto a particular background tracing scenario. | 37 // This can be used to veto a particular background tracing scenario. |
| 34 virtual bool IsAllowedToBeginBackgroundScenario( | 38 virtual bool IsAllowedToBeginBackgroundScenario( |
| 35 const BackgroundTracingConfig& config, | 39 const BackgroundTracingConfig& config, |
| 36 bool requires_anonymized_data); | 40 bool requires_anonymized_data); |
| 37 | 41 |
| 38 virtual bool IsAllowedToEndBackgroundScenario( | 42 virtual bool IsAllowedToEndBackgroundScenario( |
| 39 const content::BackgroundTracingConfig& config, | 43 const content::BackgroundTracingConfig& config, |
| 40 bool requires_anonymized_data); | 44 bool requires_anonymized_data); |
| 41 }; | 45 }; |
| 42 | 46 |
| 43 } // namespace content | 47 } // namespace content |
| 44 | 48 |
| 45 #endif // CONTENT_PUBLIC_BROWSER_TRACING_DELEGATE_H_ | 49 #endif // CONTENT_PUBLIC_BROWSER_TRACING_DELEGATE_H_ |
| OLD | NEW |