| 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_
|
|
|