OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |