| OLD | NEW |
| (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_ |
| OLD | NEW |