Index: chrome/common/render_messages_internal.h |
diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h |
index 47b2f6e28e8d13cb7e4f8ab645e8466fbcc5286e..517ef97262084ffd584100c3cc41af7b5888cdf1 100644 |
--- a/chrome/common/render_messages_internal.h |
+++ b/chrome/common/render_messages_internal.h |
@@ -22,6 +22,7 @@ |
#include "chrome/common/page_zoom.h" |
#include "chrome/common/translate_errors.h" |
#include "chrome/common/window_container_type.h" |
+#include "chrome/common/p2p_sockets.h" |
#include "ipc/ipc_message_macros.h" |
#include "media/audio/audio_buffers_state.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" |
@@ -1077,6 +1078,19 @@ IPC_MESSAGE_CONTROL1(ViewMsg_SpeechInput_SetFeatureEnabled, |
IPC_MESSAGE_ROUTED1(ViewMsg_ContextMenuClosed, |
webkit_glue::CustomContextMenuContext /* custom_context */) |
+// IPC messages for P2P Transport API. |
jam
2011/03/01 19:35:54
please move all these into a separate file, i.e. p
Sergey Ulanov
2011/03/01 22:34:17
Done.
|
+IPC_MESSAGE_ROUTED2(ViewMsg_P2P_OnSocketCreated, |
+ int /* socket_id */, |
+ P2PSocketAddress /* socket_address */) |
+ |
+IPC_MESSAGE_ROUTED1(ViewMsg_P2P_OnError, |
+ int /* socket_id */) |
+ |
+IPC_MESSAGE_ROUTED3(ViewMsg_P2P_OnDataReceived, |
+ int /* socket_id */, |
+ P2PSocketAddress /* socket_address */, |
+ std::vector<char> /* data */) |
+ |
//----------------------------------------------------------------------------- |
// TabContents messages |
// These are messages sent from the renderer to the browser process. |
@@ -2552,3 +2566,18 @@ IPC_MESSAGE_ROUTED3(ViewHostMsg_RegisterProtocolHandler, |
std::string /* scheme */, |
GURL /* url */, |
string16 /* title */) |
+ |
+// IPC messages for P2P Transport API. |
+IPC_MESSAGE_ROUTED3(ViewHostMsg_P2P_CreateSocket, |
+ P2PSocketType /* type */, |
+ int /* socket_id */, |
+ P2PSocketAddress /* remote_address */) |
+ |
+// TODO(sergeyu): Use shared memory to pass the data. |
+IPC_MESSAGE_ROUTED3(ViewHostMsg_P2P_Send, |
+ int /* socket_id */, |
+ P2PSocketAddress /* socket_address */, |
+ std::vector<char> /* data */) |
+ |
+IPC_MESSAGE_ROUTED1(ViewHostMsg_P2P_DestroySocket, |
+ int /* socket_id */) |