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

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

Issue 2785663002: Revert of Add EnabledStateObserver to BackgroundTracingManager (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « content/browser/tracing/background_tracing_manager_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <memory> 8 #include <memory>
9 9
10 #include "base/trace_event/trace_event_impl.h" 10 #include "base/trace_event/trace_event_impl.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 TriggerHandle trigger_handle, 86 TriggerHandle trigger_handle,
87 StartedFinalizingCallback started_callback) = 0; 87 StartedFinalizingCallback started_callback) = 0;
88 88
89 // Registers a manual trigger handle, and returns a TriggerHandle which can 89 // Registers a manual trigger handle, and returns a TriggerHandle which can
90 // be passed to DidTriggerHappen(). 90 // be passed to DidTriggerHappen().
91 virtual TriggerHandle RegisterTriggerType(const char* trigger_name) = 0; 91 virtual TriggerHandle RegisterTriggerType(const char* trigger_name) = 0;
92 92
93 virtual bool HasActiveScenario() = 0; 93 virtual bool HasActiveScenario() = 0;
94 94
95 virtual void InvalidateTriggerHandlesForTesting() = 0; 95 virtual void InvalidateTriggerHandlesForTesting() = 0;
96 virtual void SetTracingEnabledCallbackForTesting(
97 const base::Closure& callback) = 0;
96 virtual void FireTimerForTesting() = 0; 98 virtual void FireTimerForTesting() = 0;
97 99
98 protected: 100 protected:
99 virtual ~BackgroundTracingManager() {} 101 virtual ~BackgroundTracingManager() {}
100 }; 102 };
101 103
102 } // namespace content 104 } // namespace content
103 105
104 #endif // CONTENT_PUBLIC_BROWSER_BACKGROUND_TRACING_MANAGER_H_ 106 #endif // CONTENT_PUBLIC_BROWSER_BACKGROUND_TRACING_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/tracing/background_tracing_manager_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698