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

Unified Diff: components/metrics/leak_detector/leak_detector_monitor_impl.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: components/metrics/leak_detector/leak_detector_monitor_impl.h
diff --git a/components/metrics/leak_detector/leak_detector_monitor_impl.h b/components/metrics/leak_detector/leak_detector_monitor_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..f1ea199f3b8f433859fca6eb04464791eea99d44
--- /dev/null
+++ b/components/metrics/leak_detector/leak_detector_monitor_impl.h
@@ -0,0 +1,34 @@
+// 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 COMPONENTS_METRICS_LEAK_DETECTOR_LEAK_DETECTOR_MONITOR_IMPL_
+#define COMPONENTS_METRICS_LEAK_DETECTOR_LEAK_DETECTOR_MONITOR_IMPL_
+
+#include <vector>
+
+#include "base/macros.h"
+#include "components/metrics/leak_detector/leak_detector_monitor.mojom.h"
+#include "mojo/public/cpp/bindings/strong_binding.h"
+
+namespace metrics {
+
+class LeakDetectorMonitorImpl : public LeakDetectorMonitor {
+ public:
+ static void Create(mojo::InterfaceRequest<LeakDetectorMonitor> request);
+
+ private:
+ LeakDetectorMonitorImpl(mojo::InterfaceRequest<LeakDetectorMonitor> request);
+ ~LeakDetectorMonitorImpl() override;
+
+ void StoreLeakReport() override;
+
+ private:
+ mojo::StrongBinding<LeakDetectorMonitor> binding_;
+
+ DISALLOW_COPY_AND_ASSIGN(LeakDetectorMonitorImpl);
+};
+
+} // namespace metrics
+
+#endif // COMPONENTS_METRICS_LEAK_DETECTOR_LEAK_DETECTOR_MONITOR_IMPL_

Powered by Google App Engine
This is Rietveld 408576698