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_BROWSER_TRACING_BACKGROUND_TRACING_MANAGER_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_TRACING_BACKGROUND_TRACING_MANAGER_IMPL_H_ |
6 #define CONTENT_BROWSER_TRACING_BACKGROUND_TRACING_MANAGER_IMPL_H_ | 6 #define CONTENT_BROWSER_TRACING_BACKGROUND_TRACING_MANAGER_IMPL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ref_counted_memory.h" | 12 #include "base/memory/ref_counted_memory.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "base/metrics/histogram.h" | 14 #include "base/metrics/histogram.h" |
15 #include "content/browser/tracing/background_tracing_config_impl.h" | 15 #include "content/browser/tracing/background_tracing_config_impl.h" |
16 #include "content/browser/tracing/tracing_controller_impl.h" | 16 #include "content/browser/tracing/tracing_controller_impl.h" |
17 #include "content/public/browser/background_tracing_manager.h" | 17 #include "content/public/browser/background_tracing_manager.h" |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 | 20 |
21 class BackgroundTracingRule; | 21 class BackgroundTracingRule; |
22 class TraceMessageFilter; | |
23 class TracingDelegate; | 22 class TracingDelegate; |
24 | 23 |
25 class BackgroundTracingManagerImpl : public BackgroundTracingManager { | 24 class BackgroundTracingManagerImpl : public BackgroundTracingManager { |
26 public: | 25 public: |
27 static CONTENT_EXPORT BackgroundTracingManagerImpl* GetInstance(); | 26 static CONTENT_EXPORT BackgroundTracingManagerImpl* GetInstance(); |
28 | 27 |
29 bool SetActiveScenario(std::unique_ptr<BackgroundTracingConfig>, | 28 bool SetActiveScenario(std::unique_ptr<BackgroundTracingConfig>, |
30 const ReceiveCallback&, | 29 const ReceiveCallback&, |
31 DataFiltering data_filtering) override; | 30 DataFiltering data_filtering) override; |
32 void WhenIdle(IdleCallback idle_callback) override; | 31 void WhenIdle(IdleCallback idle_callback) override; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 base::Closure rule_triggered_callback_for_testing_; | 108 base::Closure rule_triggered_callback_for_testing_; |
110 | 109 |
111 friend struct base::DefaultLazyInstanceTraits<BackgroundTracingManagerImpl>; | 110 friend struct base::DefaultLazyInstanceTraits<BackgroundTracingManagerImpl>; |
112 | 111 |
113 DISALLOW_COPY_AND_ASSIGN(BackgroundTracingManagerImpl); | 112 DISALLOW_COPY_AND_ASSIGN(BackgroundTracingManagerImpl); |
114 }; | 113 }; |
115 | 114 |
116 } // namespace content | 115 } // namespace content |
117 | 116 |
118 #endif // CONTENT_BROWSER_TRACING_BACKGROUND_TRACING_MANAGER_IMPL_H_ | 117 #endif // CONTENT_BROWSER_TRACING_BACKGROUND_TRACING_MANAGER_IMPL_H_ |
OLD | NEW |