Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4151)

Unified Diff: chrome/renderer/leak_detector/leak_detector_monitor_client.h

Issue 1566603003: Dummy patch to try out Mojo connection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Initialize from RegisterRenderProcessMojoServices Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_
« no previous file with comments | « chrome/renderer/chrome_render_process_observer.cc ('k') | chrome/renderer/leak_detector/leak_detector_monitor_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698