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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: extensions/browser/api/media_perception_private/conversion_utils.h
diff --git a/extensions/browser/api/media_perception_private/conversion_utils.h b/extensions/browser/api/media_perception_private/conversion_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..a2e97fa6ab2f1d62489cb15dc314aac9c4d4afd4
--- /dev/null
+++ b/extensions/browser/api/media_perception_private/conversion_utils.h
@@ -0,0 +1,36 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef EXTENSIONS_BROWSER_API_MEDIA_PERCEPTION_PRIVATE_CONVERSION_UTILS_H_
+#define EXTENSIONS_BROWSER_API_MEDIA_PERCEPTION_PRIVATE_CONVERSION_UTILS_H_
+
+#include "chromeos/media_perception/media_perception.pb.h"
+#include "extensions/common/api/media_perception_private.h"
+
+namespace extensions {
+namespace api {
+namespace media_perception_private {
+
+// Converts State proto messages to State objects (generated by the
+// media_perception_private.idl).
+State StateProtoToIdl(const mri::State& state);
+
+// Converts State objects (generated by the media_perception_private.idl) to
+// State proto messages.
+mri::State StateIdlToProto(const State& state);
+
+// Converts MediaPerception proto messages to MediaPerception objects
+// (generated by the media_perception_private.idl).
+MediaPerception MediaPerceptionProtoToIdl(
+ const mri::MediaPerception& media_perception);
+
+// Converts Diagnostics proto messages to Diagnostics objects (generated by the
+// media_perception_private.idl).
+Diagnostics DiagnosticsProtoToIdl(const mri::Diagnostics& diagnostics);
+
+} // namespace media_perception_private
+} // namespace api
+} // namespace extensions
+
+#endif // EXTENSIONS_BROWSER_API_MEDIA_PERCEPTION_PRIVATE_CONVERSION_UTILS_H_
« 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