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

Side by Side Diff: components/metrics/leak_detector/protobuf_to_mojo_converter.h

Issue 2064463002: Mojo interface/service for Leak Detector on remote process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Create BUILD.gn for chrome/renderer/leak_detector Created 4 years, 5 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_PROTOBUF_TO_MOJO_CONVERTER_H_
6 #define COMPONENTS_METRICS_LEAK_DETECTOR_PROTOBUF_TO_MOJO_CONVERTER_H_
7
8 #include "components/metrics/leak_detector/leak_detector.mojom.h"
9 #include "components/metrics/proto/memory_leak_report.pb.h"
10
11 namespace metrics {
12 namespace leak_detector {
13
14 class ProtobufToMojoConverter {
jochen (gone - plz use gerrit) 2016/07/18 11:40:55 we prefer namespaces over classes with only static
Simon Que 2016/07/18 18:50:21 Done.
15 public:
16 static void ParamsToMojo(const MemoryLeakReportProto::Params& params,
17 mojom::LeakDetectorParams* mojo_params);
18 static void MojoToParams(const mojom::LeakDetectorParams& mojo_params,
19 MemoryLeakReportProto::Params* params);
20
21 static void ReportToMojo(const MemoryLeakReportProto& report,
22 mojom::MemoryLeakReport* mojo_report);
23 static void MojoToReport(const mojom::MemoryLeakReport& mojo_report,
24 MemoryLeakReportProto* report);
25 };
26
27 } // namespace leak_detector
28 } // namespace metrics
29
30 #endif // COMPONENTS_METRICS_LEAK_DETECTOR_PROTOBUF_TO_MOJO_CONVERTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698