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

Unified Diff: extensions/browser/api/cast_channel/cast_channel_enum_util.h

Issue 2891923004: [cast_channel] Make cast_channel related files not depend on "cast_channel.h" (Closed)
Patch Set: fix windows compile errors 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/cast_channel/cast_channel_enum_util.h
diff --git a/extensions/browser/api/cast_channel/cast_channel_enum_util.h b/extensions/browser/api/cast_channel/cast_channel_enum_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..0fbe066827d88a8db3c31032eeb6276c296b1e83
--- /dev/null
+++ b/extensions/browser/api/cast_channel/cast_channel_enum_util.h
@@ -0,0 +1,28 @@
+// 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_CAST_CHANNEL_CAST_CHANNEL_TYPE_UTIL_H_
+#define EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_TYPE_UTIL_H_
+
+#include "components/cast_channel/cast_channel_enum.h"
+#include "extensions/common/api/cast_channel.h"
+
+namespace extensions {
+namespace api {
+namespace cast_channel {
+
+api::cast_channel::ReadyState ToReadyState(
+ ::cast_channel::ReadyState ready_state);
+api::cast_channel::ChannelError ToChannelError(
+ ::cast_channel::ChannelError channel_error);
+api::cast_channel::ChannelAuthType ToChannelAuthType(
+ ::cast_channel::ChannelAuthType channel_auth);
+::cast_channel::ChannelAuthType ToChannelAuthTypeInternal(
+ api::cast_channel::ChannelAuthType channel_auth);
+
+} // namespace cast_channel
+} // namespace api
+} // namespace extensions
+
+#endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_TYPE_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698