| OLD | NEW |
| (Empty) |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_BROWSER_TRACING_BACKGROUND_MEMORY_TRACING_OBSERVER_H_ | |
| 6 #define CONTENT_BROWSER_TRACING_BACKGROUND_MEMORY_TRACING_OBSERVER_H_ | |
| 7 | |
| 8 #include "content/browser/tracing/background_tracing_manager_impl.h" | |
| 9 | |
| 10 namespace content { | |
| 11 | |
| 12 class BackgroundMemoryTracingObserver | |
| 13 : public BackgroundTracingManagerImpl::EnabledStateObserver { | |
| 14 public: | |
| 15 static BackgroundMemoryTracingObserver* GetInstance(); | |
| 16 | |
| 17 void OnScenarioActivated(const BackgroundTracingConfigImpl& config) override; | |
| 18 void OnTracingEnabled( | |
| 19 BackgroundTracingConfigImpl::CategoryPreset preset) override; | |
| 20 | |
| 21 private: | |
| 22 BackgroundMemoryTracingObserver(); | |
| 23 ~BackgroundMemoryTracingObserver() override; | |
| 24 | |
| 25 DISALLOW_COPY_AND_ASSIGN(BackgroundMemoryTracingObserver); | |
| 26 }; | |
| 27 | |
| 28 } // namespace content | |
| 29 | |
| 30 #endif // CONTENT_BROWSER_TRACING_BACKGROUND_MEMORY_TRACING_OBSERVER_H_ | |
| OLD | NEW |