| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_ |
| OLD | NEW |