| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 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 CHROME_RENDERER_LEAK_DETECTOR_LEAK_DETECTOR_MONITOR_CLIENT_H_ |
| 6 #define CHROME_RENDERER_LEAK_DETECTOR_LEAK_DETECTOR_MONITOR_CLIENT_H_ |
| 7 |
| 8 #include "components/metrics/leak_detector/leak_detector_monitor.mojom.h" |
| 9 |
| 10 namespace metrics { |
| 11 |
| 12 class LeakDetectorMonitorClient { |
| 13 public: |
| 14 // Singleton instance management. |
| 15 static void Initialize(); |
| 16 static void Shutdown(); |
| 17 static LeakDetectorMonitorClient* GetInstance(); |
| 18 static bool IsInitialized(); |
| 19 |
| 20 ~LeakDetectorMonitorClient(); |
| 21 |
| 22 void OnLeakFound(); |
| 23 |
| 24 private: |
| 25 // Do not create directly. Use the singleton functions above. |
| 26 LeakDetectorMonitorClient(); |
| 27 |
| 28 LeakDetectorMonitorPtr leak_detector_monitor_; |
| 29 }; |
| 30 |
| 31 } // namespace metrics |
| 32 |
| 33 #endif // CHROME_RENDERER_LEAK_DETECTOR_LEAK_DETECTOR_MONITOR_CLIENT_H_ |
| OLD | NEW |