Revert "Reland c91b178b07b0d - Delete dead signin code (SigninGlobalError)"
[chromium-blink-merge.git] / chrome / browser / tracing / chrome_tracing_delegate.h
blob99964df100976a90b6639efa217980a93a04acb1
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_TRACING_CHROME_TRACING_DELEGATE_H_
6 #define CHROME_BROWSER_TRACING_CHROME_TRACING_DELEGATE_H_
8 #include "chrome/browser/ui/browser_list_observer.h"
9 #include "content/public/browser/tracing_delegate.h"
11 class PrefRegistrySimple;
13 class ChromeTracingDelegate : public content::TracingDelegate,
14 public chrome::BrowserListObserver {
15 public:
16 ChromeTracingDelegate();
17 ~ChromeTracingDelegate() override;
19 static void RegisterPrefs(PrefRegistrySimple* registry);
21 scoped_ptr<content::TraceUploader> GetTraceUploader(
22 net::URLRequestContextGetter* request_context) override;
24 bool IsAllowedToBeginBackgroundScenario(
25 const content::BackgroundTracingConfig& config,
26 bool requires_anonymized_data) override;
28 bool IsAllowedToEndBackgroundScenario(
29 const content::BackgroundTracingConfig& config,
30 bool requires_anonymized_data) override;
32 private:
33 // chrome::BrowserListObserver implementation.
34 void OnBrowserAdded(Browser* browser) override;
36 bool incognito_launched_;
39 #endif // CHROME_BROWSER_TRACING_CHROME_TRACING_DELEGATE_H_