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

Side by Side Diff: chrome/browser/tracing/chrome_tracing_delegate.h

Issue 1181213002: Slow Reports - Embed Metadata in Traces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 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 "chrome/browser/ui/browser_list_observer.h"
9 #include "content/public/browser/tracing_delegate.h" 9 #include "content/public/browser/tracing_delegate.h"
10 10
11 class PrefRegistrySimple; 11 class PrefRegistrySimple;
12 12
13 class ChromeTracingDelegate : public content::TracingDelegate, 13 class ChromeTracingDelegate : public content::TracingDelegate,
14 public chrome::BrowserListObserver { 14 public chrome::BrowserListObserver {
15 public: 15 public:
16 ChromeTracingDelegate(); 16 ChromeTracingDelegate();
17 ~ChromeTracingDelegate() override; 17 ~ChromeTracingDelegate() override;
18 18
19 static void RegisterPrefs(PrefRegistrySimple* registry); 19 static void RegisterPrefs(PrefRegistrySimple* registry);
20 20
21 scoped_ptr<content::TraceUploader> GetTraceUploader( 21 scoped_ptr<content::TraceUploader> GetTraceUploader(
22 net::URLRequestContextGetter* request_context) override; 22 net::URLRequestContextGetter* request_context) override;
23 23
24 bool GetChromeVersion(std::string*) override;
25
24 bool IsAllowedToBeginBackgroundScenario( 26 bool IsAllowedToBeginBackgroundScenario(
25 const content::BackgroundTracingConfig& config, 27 const content::BackgroundTracingConfig& config,
26 bool requires_anonymized_data) override; 28 bool requires_anonymized_data) override;
27 29
28 bool IsAllowedToEndBackgroundScenario( 30 bool IsAllowedToEndBackgroundScenario(
29 const content::BackgroundTracingConfig& config, 31 const content::BackgroundTracingConfig& config,
30 bool requires_anonymized_data) override; 32 bool requires_anonymized_data) override;
31 33
32 private: 34 private:
33 // chrome::BrowserListObserver implementation. 35 // chrome::BrowserListObserver implementation.
34 void OnBrowserAdded(Browser* browser) override; 36 void OnBrowserAdded(Browser* browser) override;
35 37
36 bool incognito_launched_; 38 bool incognito_launched_;
37 }; 39 };
38 40
39 #endif // CHROME_BROWSER_TRACING_CHROME_TRACING_DELEGATE_H_ 41 #endif // CHROME_BROWSER_TRACING_CHROME_TRACING_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698