OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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 EXTENSIONS_BROWSER_API_MEDIA_PERCEPTION_PRIVATE_CONVERSION_UTILS_H_ |
| 6 #define EXTENSIONS_BROWSER_API_MEDIA_PERCEPTION_PRIVATE_CONVERSION_UTILS_H_ |
| 7 |
| 8 #include "chromeos/media_perception/media_perception.pb.h" |
| 9 #include "extensions/common/api/media_perception_private.h" |
| 10 |
| 11 namespace extensions { |
| 12 namespace api { |
| 13 namespace media_perception_private { |
| 14 |
| 15 // Converts State proto messages to State objects (generated by the |
| 16 // media_perception_private.idl). |
| 17 State StateProtoToIdl(const mri::State& state); |
| 18 |
| 19 // Converts State objects (generated by the media_perception_private.idl) to |
| 20 // State proto messages. |
| 21 mri::State StateIdlToProto(const State& state); |
| 22 |
| 23 // Converts MediaPerception proto messages to MediaPerception objects |
| 24 // (generated by the media_perception_private.idl). |
| 25 MediaPerception MediaPerceptionProtoToIdl( |
| 26 const mri::MediaPerception& media_perception); |
| 27 |
| 28 // Converts Diagnostics proto messages to Diagnostics objects (generated by the |
| 29 // media_perception_private.idl). |
| 30 Diagnostics DiagnosticsProtoToIdl(const mri::Diagnostics& diagnostics); |
| 31 |
| 32 } // namespace media_perception_private |
| 33 } // namespace api |
| 34 } // namespace extensions |
| 35 |
| 36 #endif // EXTENSIONS_BROWSER_API_MEDIA_PERCEPTION_PRIVATE_CONVERSION_UTILS_H_ |
OLD | NEW |