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

Unified Diff: content/common/p2p_messages.h

Issue 6621025: Move socket stream messages to content, in preparation for moving its dispatc... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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 | « content/common/content_message_generator.cc ('k') | content/common/p2p_messages.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/p2p_messages.h
===================================================================
--- content/common/p2p_messages.h (revision 76958)
+++ content/common/p2p_messages.h (working copy)
@@ -3,15 +3,20 @@
// found in the LICENSE file.
// IPC messages for the P2P Transport API.
+// Multiply-included message file, hence no include guard.
-#ifndef CONTENT_COMMON_P2P_MESSAGES_H_
-#define CONTENT_COMMON_P2P_MESSAGES_H_
-
#include "content/common/p2p_sockets.h"
#include "ipc/ipc_message_macros.h"
#define IPC_MESSAGE_START P2PMsgStart
+IPC_STRUCT_TRAITS_BEGIN(P2PSocketAddress)
+ IPC_STRUCT_TRAITS_MEMBER(address)
+ IPC_STRUCT_TRAITS_MEMBER(port)
+IPC_STRUCT_TRAITS_END()
+
+IPC_ENUM_TRAITS(P2PSocketType)
+
// P2P Socket messages sent from the browser to the renderer.
IPC_MESSAGE_ROUTED2(P2PMsg_OnSocketCreated,
@@ -41,22 +46,3 @@
IPC_MESSAGE_ROUTED1(P2PHostMsg_DestroySocket,
int /* socket_id */)
-
-namespace IPC {
-
-template <>
-struct ParamTraits<P2PSocketAddress> {
- typedef P2PSocketAddress param_type;
- static void Write(Message* m, const param_type& p);
- static bool Read(const Message* m, void** iter, param_type* p);
- static void Log(const param_type& p, std::string* l);
-};
-
-template <>
-struct SimilarTypeTraits<P2PSocketType> {
- typedef int Type;
-};
-
-} // namespace IPC
-
-#endif // CONTENT_COMMON_P2P_MESSAGES_H_
« no previous file with comments | « content/common/content_message_generator.cc ('k') | content/common/p2p_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698