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 CHROME_BROWSER_TRACING_CHROME_TRACING_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_TRACING_CHROME_TRACING_DELEGATE_H_ |
6 #define CHROME_BROWSER_TRACING_CHROME_TRACING_DELEGATE_H_ | 6 #define CHROME_BROWSER_TRACING_CHROME_TRACING_DELEGATE_H_ |
7 | 7 |
| 8 #include "chrome/browser/ui/browser_list_observer.h" |
8 #include "content/public/browser/tracing_delegate.h" | 9 #include "content/public/browser/tracing_delegate.h" |
9 | 10 |
10 class ChromeTracingDelegate : public content::TracingDelegate { | 11 class PrefRegistrySimple; |
| 12 |
| 13 void RegisterTracingPrefs(PrefRegistrySimple* registry); |
| 14 |
| 15 class ChromeTracingDelegate : public content::TracingDelegate, |
| 16 public chrome::BrowserListObserver { |
11 public: | 17 public: |
| 18 ChromeTracingDelegate(); |
| 19 ~ChromeTracingDelegate() override; |
| 20 |
12 scoped_ptr<content::TraceUploader> GetTraceUploader( | 21 scoped_ptr<content::TraceUploader> GetTraceUploader( |
13 net::URLRequestContextGetter* request_context) override; | 22 net::URLRequestContextGetter* request_context) override; |
| 23 |
| 24 bool IsAllowedToBeginBackgroundScenario( |
| 25 const content::BackgroundTracingConfig& config, |
| 26 bool requires_anonymized_data) override; |
| 27 |
| 28 bool IsAllowedToEndBackgroundScenario( |
| 29 const content::BackgroundTracingConfig& config, |
| 30 bool requires_anonymized_data) override; |
| 31 |
| 32 private: |
| 33 // chrome::BrowserListObserver implementation. |
| 34 void OnBrowserAdded(Browser* browser) override; |
| 35 |
| 36 bool incognito_launched_; |
14 }; | 37 }; |
15 | 38 |
16 #endif // CHROME_BROWSER_TRACING_CHROME_TRACING_DELEGATE_H_ | 39 #endif // CHROME_BROWSER_TRACING_CHROME_TRACING_DELEGATE_H_ |
OLD | NEW |