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

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

Issue 1148393003: Implement Reactive Configuration in Background Tracing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase files depending on reactive config 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 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 // Registers a manual trigger handle, and returns a TriggerHandle which can 79 // Registers a manual trigger handle, and returns a TriggerHandle which can
80 // be passed to DidTriggerHappen(). 80 // be passed to DidTriggerHappen().
81 virtual TriggerHandle RegisterTriggerType(const char* trigger_name) = 0; 81 virtual TriggerHandle RegisterTriggerType(const char* trigger_name) = 0;
82 82
83 // Returns a list of all registered triggers. 83 // Returns a list of all registered triggers.
84 virtual void GetTriggerNameList(std::vector<std::string>* trigger_names) = 0; 84 virtual void GetTriggerNameList(std::vector<std::string>* trigger_names) = 0;
85 85
86 virtual void InvalidateTriggerHandlesForTesting() = 0; 86 virtual void InvalidateTriggerHandlesForTesting() = 0;
87 87
88 virtual void FireTimerForTesting() = 0;
89
88 protected: 90 protected:
89 virtual ~BackgroundTracingManager() {} 91 virtual ~BackgroundTracingManager() {}
90 }; 92 };
91 93
92 } // namespace content 94 } // namespace content
93 95
94 #endif // CONTENT_PUBLIC_BROWSER_BACKGROUND_TRACING_MANAGER_H_ 96 #endif // CONTENT_PUBLIC_BROWSER_BACKGROUND_TRACING_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698