OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <map> | 5 #include <map> |
6 #include <set> | 6 #include <set> |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
11 | 11 |
12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
13 #include "base/file_util_proxy.h" | 13 #include "base/file_util_proxy.h" |
14 #include "base/nullable_string16.h" | 14 #include "base/nullable_string16.h" |
15 #include "base/platform_file.h" | 15 #include "base/platform_file.h" |
16 #include "base/sync_socket.h" | 16 #include "base/sync_socket.h" |
17 #include "chrome/common/content_settings.h" | 17 #include "chrome/common/content_settings.h" |
18 #include "chrome/common/extensions/extension.h" | 18 #include "chrome/common/extensions/extension.h" |
19 #include "chrome/common/geoposition.h" | 19 #include "chrome/common/geoposition.h" |
20 #include "chrome/common/nacl_types.h" | 20 #include "chrome/common/nacl_types.h" |
21 #include "chrome/common/notification_type.h" | 21 #include "chrome/common/notification_type.h" |
22 #include "chrome/common/page_zoom.h" | 22 #include "chrome/common/page_zoom.h" |
23 #include "chrome/common/translate_errors.h" | 23 #include "chrome/common/translate_errors.h" |
24 #include "chrome/common/window_container_type.h" | 24 #include "chrome/common/window_container_type.h" |
25 #include "chrome/common/p2p_sockets.h" | |
25 #include "ipc/ipc_message_macros.h" | 26 #include "ipc/ipc_message_macros.h" |
26 #include "media/audio/audio_buffers_state.h" | 27 #include "media/audio/audio_buffers_state.h" |
27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" | 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" |
28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction. h" | 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction. h" |
29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" | 30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" |
30 #include "webkit/glue/context_menu.h" | 31 #include "webkit/glue/context_menu.h" |
31 #include "webkit/glue/webdropdata.h" | 32 #include "webkit/glue/webdropdata.h" |
32 #include "webkit/plugins/npapi/webplugininfo.h" | 33 #include "webkit/plugins/npapi/webplugininfo.h" |
33 | 34 |
34 #if defined(OS_POSIX) | 35 #if defined(OS_POSIX) |
(...skipping 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1070 | 1071 |
1071 // Indicate whether speech input API is enabled or not. | 1072 // Indicate whether speech input API is enabled or not. |
1072 IPC_MESSAGE_CONTROL1(ViewMsg_SpeechInput_SetFeatureEnabled, | 1073 IPC_MESSAGE_CONTROL1(ViewMsg_SpeechInput_SetFeatureEnabled, |
1073 bool /* enabled */) | 1074 bool /* enabled */) |
1074 | 1075 |
1075 // Sent in response to a ViewHostMsg_ContextMenu to let the renderer know that | 1076 // Sent in response to a ViewHostMsg_ContextMenu to let the renderer know that |
1076 // the menu has been closed. | 1077 // the menu has been closed. |
1077 IPC_MESSAGE_ROUTED1(ViewMsg_ContextMenuClosed, | 1078 IPC_MESSAGE_ROUTED1(ViewMsg_ContextMenuClosed, |
1078 webkit_glue::CustomContextMenuContext /* custom_context */) | 1079 webkit_glue::CustomContextMenuContext /* custom_context */) |
1079 | 1080 |
1081 // 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.
| |
1082 IPC_MESSAGE_ROUTED2(ViewMsg_P2P_OnSocketCreated, | |
1083 int /* socket_id */, | |
1084 P2PSocketAddress /* socket_address */) | |
1085 | |
1086 IPC_MESSAGE_ROUTED1(ViewMsg_P2P_OnError, | |
1087 int /* socket_id */) | |
1088 | |
1089 IPC_MESSAGE_ROUTED3(ViewMsg_P2P_OnDataReceived, | |
1090 int /* socket_id */, | |
1091 P2PSocketAddress /* socket_address */, | |
1092 std::vector<char> /* data */) | |
1093 | |
1080 //----------------------------------------------------------------------------- | 1094 //----------------------------------------------------------------------------- |
1081 // TabContents messages | 1095 // TabContents messages |
1082 // These are messages sent from the renderer to the browser process. | 1096 // These are messages sent from the renderer to the browser process. |
1083 | 1097 |
1084 // Sent by the renderer when it is creating a new window. The browser creates | 1098 // Sent by the renderer when it is creating a new window. The browser creates |
1085 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is | 1099 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is |
1086 // MSG_ROUTING_NONE, the view couldn't be created. | 1100 // MSG_ROUTING_NONE, the view couldn't be created. |
1087 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_CreateWindow, | 1101 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_CreateWindow, |
1088 ViewHostMsg_CreateWindow_Params, | 1102 ViewHostMsg_CreateWindow_Params, |
1089 int /* route_id */, | 1103 int /* route_id */, |
(...skipping 1455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2545 // while performing stress testing. | 2559 // while performing stress testing. |
2546 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, | 2560 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, |
2547 int /* cmd */, | 2561 int /* cmd */, |
2548 int /* param */) | 2562 int /* param */) |
2549 | 2563 |
2550 // Register a new handler for URL requests with the given scheme. | 2564 // Register a new handler for URL requests with the given scheme. |
2551 IPC_MESSAGE_ROUTED3(ViewHostMsg_RegisterProtocolHandler, | 2565 IPC_MESSAGE_ROUTED3(ViewHostMsg_RegisterProtocolHandler, |
2552 std::string /* scheme */, | 2566 std::string /* scheme */, |
2553 GURL /* url */, | 2567 GURL /* url */, |
2554 string16 /* title */) | 2568 string16 /* title */) |
2569 | |
2570 // IPC messages for P2P Transport API. | |
2571 IPC_MESSAGE_ROUTED3(ViewHostMsg_P2P_CreateSocket, | |
2572 P2PSocketType /* type */, | |
2573 int /* socket_id */, | |
2574 P2PSocketAddress /* remote_address */) | |
2575 | |
2576 // TODO(sergeyu): Use shared memory to pass the data. | |
2577 IPC_MESSAGE_ROUTED3(ViewHostMsg_P2P_Send, | |
2578 int /* socket_id */, | |
2579 P2PSocketAddress /* socket_address */, | |
2580 std::vector<char> /* data */) | |
2581 | |
2582 IPC_MESSAGE_ROUTED1(ViewHostMsg_P2P_DestroySocket, | |
2583 int /* socket_id */) | |
OLD | NEW |