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

Unified Diff: chrome/common/render_messages_internal.h

Issue 6598053: P2P Sockets host implementation. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
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
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.
+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 */)

Powered by Google App Engine
This is Rietveld 408576698