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

Side by Side 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW
« 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