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

Unified Diff: components/cast_channel/cast_message_util.h

Issue 2913033003: [cast_channel] Move cast_channel related files from //extensions to //components (Closed)
Patch Set: fix buildbot compile errors Created 3 years, 6 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
« no previous file with comments | « components/cast_channel/cast_framer_unittest.cc ('k') | components/cast_channel/cast_message_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cast_channel/cast_message_util.h
diff --git a/extensions/browser/api/cast_channel/cast_message_util.h b/components/cast_channel/cast_message_util.h
similarity index 60%
copy from extensions/browser/api/cast_channel/cast_message_util.h
copy to components/cast_channel/cast_message_util.h
index bf1bbbd80c765aea21c07bc6ddd2249086c0f783..db30a2273f0add371c9dfdb19ea28214233a75c8 100644
--- a/extensions/browser/api/cast_channel/cast_message_util.h
+++ b/components/cast_channel/cast_message_util.h
@@ -2,31 +2,20 @@
// 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_MESSAGE_UTIL_H_
-#define EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_MESSAGE_UTIL_H_
+#ifndef COMPONENTS_CAST_CHANNEL_CAST_MESSAGE_UTIL_H_
+#define COMPONENTS_CAST_CHANNEL_CAST_MESSAGE_UTIL_H_
#include <string>
-namespace extensions {
-namespace api {
namespace cast_channel {
class AuthContext;
class CastMessage;
class DeviceAuthMessage;
-struct MessageInfo;
-
-// Fills |message_proto| from |message| and returns true on success.
-bool MessageInfoToCastMessage(const MessageInfo& message,
- CastMessage* message_proto);
// Checks if the contents of |message_proto| are valid.
bool IsCastMessageValid(const CastMessage& message_proto);
-// Fills |message| from |message_proto| and returns true on success.
-bool CastMessageToMessageInfo(const CastMessage& message_proto,
- MessageInfo* message);
-
// Returns a human readable string for |message_proto|.
std::string CastMessageToString(const CastMessage& message_proto);
@@ -42,7 +31,5 @@ void CreateAuthChallengeMessage(CastMessage* message_proto,
bool IsAuthMessage(const CastMessage& message);
} // namespace cast_channel
-} // namespace api
-} // namespace extensions
-#endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_MESSAGE_UTIL_H_
+#endif // COMPONENTS_CAST_CHANNEL_CAST_MESSAGE_UTIL_H_
« no previous file with comments | « components/cast_channel/cast_framer_unittest.cc ('k') | components/cast_channel/cast_message_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698