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

Unified Diff: components/metrics/leak_detector/leak_detector_monitor_impl.cc

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
« no previous file with comments | « components/metrics/leak_detector/leak_detector_monitor_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/leak_detector/leak_detector_monitor_impl.cc
diff --git a/components/metrics/leak_detector/leak_detector_monitor_impl.cc b/components/metrics/leak_detector/leak_detector_monitor_impl.cc
new file mode 100644
index 0000000000000000000000000000000000000000..9d3be8ec1dbaebe1c870cf40f3aa65ed7583e455
--- /dev/null
+++ b/components/metrics/leak_detector/leak_detector_monitor_impl.cc
@@ -0,0 +1,31 @@
+// 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.
+
+#include "components/metrics/leak_detector/leak_detector_monitor_impl.h"
+
+#include <utility>
+
+namespace metrics {
+
+// static
+void LeakDetectorMonitorImpl::Create(
+ mojo::InterfaceRequest<LeakDetectorMonitor> request) {
+ LOG(ERROR) << "LeakDetectorMonitorImpl::Create";
+ new LeakDetectorMonitorImpl(std::move(request));
+ LOG(ERROR) << "LeakDetectorMonitorImpl::Create";
+}
+
+LeakDetectorMonitorImpl::LeakDetectorMonitorImpl(
+ mojo::InterfaceRequest<LeakDetectorMonitor> request)
+ : binding_(this, std::move(request)) {
+}
+
+LeakDetectorMonitorImpl::~LeakDetectorMonitorImpl() {
+}
+
+void LeakDetectorMonitorImpl::StoreLeakReport() {
+ LOG(ERROR) << "LeakDetectorMonitorImpl::StoreLeakReport";
+}
+
+} // namespace metrics
« no previous file with comments | « components/metrics/leak_detector/leak_detector_monitor_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698