Chromium Code Reviews| 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_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_ | |
| OLD | NEW |