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

Side by Side Diff: chrome/renderer/leak_detector_remote_client.h

Issue 2056973002: Add renderer-side client for LeakDetectorRemoteController Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Import sources from gypi into BUILD.gn; Unregister observer; Check that params were decoded Created 4 years, 6 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 CHROME_RENDERER_LEAK_DETECTOR_REMOTE_CLIENT_H_
6 #define CHROME_RENDERER_LEAK_DETECTOR_REMOTE_CLIENT_H_
7
8 #include "base/macros.h"
9 #include "components/metrics/leak_detector/leak_detector.h"
10 #include "components/metrics/leak_detector/leak_detector_remote.mojom.h"
11
12 class LeakDetectorRemoteClient : public metrics::LeakDetector::Observer {
13 public:
14 LeakDetectorRemoteClient();
15 ~LeakDetectorRemoteClient() override;
16
17 // metrics::LeakDetector::Observer:
18 void OnLeaksFound(
19 const std::vector<metrics::MemoryLeakReportProto>& reports) override;
20
21 private:
22 // Callback for remote function LeakDetectorRemote::GetParams().
23 void OnParamsReceived(mojo::String result);
24
25 // Handle to the remote Mojo interface.
26 metrics::LeakDetectorRemotePtr remote_service_;
27
28 DISALLOW_COPY_AND_ASSIGN(LeakDetectorRemoteClient);
29 };
30
31 #endif // CHROME_RENDERER_LEAK_DETECTOR_REMOTE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698