| Index: chrome/renderer/leak_detector/leak_detector_monitor_client.h
|
| diff --git a/chrome/renderer/leak_detector/leak_detector_monitor_client.h b/chrome/renderer/leak_detector/leak_detector_monitor_client.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f746a27a91140776284772681999105c63e19325
|
| --- /dev/null
|
| +++ b/chrome/renderer/leak_detector/leak_detector_monitor_client.h
|
| @@ -0,0 +1,33 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_RENDERER_LEAK_DETECTOR_LEAK_DETECTOR_MONITOR_CLIENT_H_
|
| +#define CHROME_RENDERER_LEAK_DETECTOR_LEAK_DETECTOR_MONITOR_CLIENT_H_
|
| +
|
| +#include "components/metrics/leak_detector/leak_detector_monitor.mojom.h"
|
| +
|
| +namespace metrics {
|
| +
|
| +class LeakDetectorMonitorClient {
|
| + public:
|
| + // Singleton instance management.
|
| + static void Initialize();
|
| + static void Shutdown();
|
| + static LeakDetectorMonitorClient* GetInstance();
|
| + static bool IsInitialized();
|
| +
|
| + ~LeakDetectorMonitorClient();
|
| +
|
| + void OnLeakFound();
|
| +
|
| + private:
|
| + // Do not create directly. Use the singleton functions above.
|
| + LeakDetectorMonitorClient();
|
| +
|
| + LeakDetectorMonitorPtr leak_detector_monitor_;
|
| +};
|
| +
|
| +} // namespace metrics
|
| +
|
| +#endif // CHROME_RENDERER_LEAK_DETECTOR_LEAK_DETECTOR_MONITOR_CLIENT_H_
|
|
|