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

Side by Side Diff: extensions/browser/api/media_perception_private/conversion_utils.h

Issue 2858353002: MediaPerceptionPrivate API impl and testing. (Closed)
Patch Set: Added media_perception_proto as direct dependency of test targets. Created 3 years, 7 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 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_
OLDNEW
« no previous file with comments | « extensions/browser/api/BUILD.gn ('k') | extensions/browser/api/media_perception_private/conversion_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698