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

Side by Side 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 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 COMPONENTS_METRICS_LEAK_DETECTOR_LEAK_DETECTOR_MONITOR_IMPL_
6 #define COMPONENTS_METRICS_LEAK_DETECTOR_LEAK_DETECTOR_MONITOR_IMPL_
7
8 #include <vector>
9
10 #include "base/macros.h"
11 #include "components/metrics/leak_detector/leak_detector_monitor.mojom.h"
12 #include "mojo/public/cpp/bindings/strong_binding.h"
13
14 namespace metrics {
15
16 class LeakDetectorMonitorImpl : public LeakDetectorMonitor {
17 public:
18 static void Create(mojo::InterfaceRequest<LeakDetectorMonitor> request);
19
20 private:
21 LeakDetectorMonitorImpl(mojo::InterfaceRequest<LeakDetectorMonitor> request);
22 ~LeakDetectorMonitorImpl() override;
23
24 void StoreLeakReport() override;
25
26 private:
27 mojo::StrongBinding<LeakDetectorMonitor> binding_;
28
29 DISALLOW_COPY_AND_ASSIGN(LeakDetectorMonitorImpl);
30 };
31
32 } // namespace metrics
33
34 #endif // COMPONENTS_METRICS_LEAK_DETECTOR_LEAK_DETECTOR_MONITOR_IMPL_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698