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

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

Issue 1243743002: Slow Reports - Add message filter to trigger background traces from child processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merged into TraceMessageFilter. Created 5 years, 5 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 CONTENT_PUBLIC_BROWSER_BACKGROUND_TRACING_MANAGER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_BACKGROUND_TRACING_MANAGER_H_
6 #define CONTENT_PUBLIC_BROWSER_BACKGROUND_TRACING_MANAGER_H_ 6 #define CONTENT_PUBLIC_BROWSER_BACKGROUND_TRACING_MANAGER_H_
7 7
8 #include "base/trace_event/trace_event_impl.h" 8 #include "base/trace_event/trace_event_impl.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 // Returns a list of all registered triggers. 90 // Returns a list of all registered triggers.
91 virtual void GetTriggerNameList(std::vector<std::string>* trigger_names) = 0; 91 virtual void GetTriggerNameList(std::vector<std::string>* trigger_names) = 0;
92 92
93 virtual void InvalidateTriggerHandlesForTesting() = 0; 93 virtual void InvalidateTriggerHandlesForTesting() = 0;
94 virtual void SetTracingEnabledCallbackForTesting( 94 virtual void SetTracingEnabledCallbackForTesting(
95 const base::Closure& callback) = 0; 95 const base::Closure& callback) = 0;
96 virtual void FireTimerForTesting() = 0; 96 virtual void FireTimerForTesting() = 0;
97 virtual bool HasActiveScenarioForTesting() = 0; 97 virtual bool HasActiveScenarioForTesting() = 0;
98 98
99 virtual void OnHistogramTrigger(const std::string& histogram_name) = 0;
100
99 protected: 101 protected:
100 virtual ~BackgroundTracingManager() {} 102 virtual ~BackgroundTracingManager() {}
101 }; 103 };
102 104
103 } // namespace content 105 } // namespace content
104 106
105 #endif // CONTENT_PUBLIC_BROWSER_BACKGROUND_TRACING_MANAGER_H_ 107 #endif // CONTENT_PUBLIC_BROWSER_BACKGROUND_TRACING_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698