OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // IPC messages for page rendering. | 5 // IPC messages for page rendering. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include "base/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
9 #include "base/process/process.h" | 9 #include "base/process/process.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "content/public/common/message_port_types.h" | 28 #include "content/public/common/message_port_types.h" |
29 #include "content/public/common/page_state.h" | 29 #include "content/public/common/page_state.h" |
30 #include "content/public/common/page_zoom.h" | 30 #include "content/public/common/page_zoom.h" |
31 #include "content/public/common/referrer.h" | 31 #include "content/public/common/referrer.h" |
32 #include "content/public/common/renderer_preferences.h" | 32 #include "content/public/common/renderer_preferences.h" |
33 #include "content/public/common/stop_find_action.h" | 33 #include "content/public/common/stop_find_action.h" |
34 #include "content/public/common/three_d_api_types.h" | 34 #include "content/public/common/three_d_api_types.h" |
35 #include "content/public/common/window_container_type.h" | 35 #include "content/public/common/window_container_type.h" |
36 #include "ipc/ipc_channel_handle.h" | 36 #include "ipc/ipc_channel_handle.h" |
37 #include "ipc/ipc_message_macros.h" | 37 #include "ipc/ipc_message_macros.h" |
38 #include "ipc/ipc_platform_file.h" | |
39 #include "media/audio/audio_parameters.h" | 38 #include "media/audio/audio_parameters.h" |
40 #include "media/base/channel_layout.h" | 39 #include "media/base/channel_layout.h" |
41 #include "media/base/media_log_event.h" | 40 #include "media/base/media_log_event.h" |
42 #include "net/base/network_change_notifier.h" | 41 #include "net/base/network_change_notifier.h" |
43 #include "third_party/WebKit/public/platform/WebDisplayMode.h" | 42 #include "third_party/WebKit/public/platform/WebDisplayMode.h" |
44 #include "third_party/WebKit/public/platform/WebFloatPoint.h" | 43 #include "third_party/WebKit/public/platform/WebFloatPoint.h" |
45 #include "third_party/WebKit/public/platform/WebFloatRect.h" | 44 #include "third_party/WebKit/public/platform/WebFloatRect.h" |
46 #include "third_party/WebKit/public/platform/WebScreenInfo.h" | 45 #include "third_party/WebKit/public/platform/WebScreenInfo.h" |
47 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationType.h" | 46 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationType.h" |
48 #include "third_party/WebKit/public/web/WebDeviceEmulationParams.h" | 47 #include "third_party/WebKit/public/web/WebDeviceEmulationParams.h" |
(...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
879 | 878 |
880 // Tells the renderer to empty its plugin list cache, optional reloading | 879 // Tells the renderer to empty its plugin list cache, optional reloading |
881 // pages containing plugins. | 880 // pages containing plugins. |
882 IPC_MESSAGE_CONTROL1(ViewMsg_PurgePluginListCache, | 881 IPC_MESSAGE_CONTROL1(ViewMsg_PurgePluginListCache, |
883 bool /* reload_pages */) | 882 bool /* reload_pages */) |
884 #endif | 883 #endif |
885 | 884 |
886 // Used to instruct the RenderView to go into "view source" mode. | 885 // Used to instruct the RenderView to go into "view source" mode. |
887 IPC_MESSAGE_ROUTED0(ViewMsg_EnableViewSourceMode) | 886 IPC_MESSAGE_ROUTED0(ViewMsg_EnableViewSourceMode) |
888 | 887 |
889 // Instructs the renderer to save the current page to MHTML. | |
890 IPC_MESSAGE_ROUTED2(ViewMsg_SavePageAsMHTML, | |
891 int /* job_id */, | |
892 IPC::PlatformFileForTransit /* file handle */) | |
893 | |
894 // An acknowledge to ViewHostMsg_MultipleTargetsTouched to notify the renderer | 888 // An acknowledge to ViewHostMsg_MultipleTargetsTouched to notify the renderer |
895 // process to release the magnified image. | 889 // process to release the magnified image. |
896 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupBitmap, | 890 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupBitmap, |
897 cc::SharedBitmapId /* id */) | 891 cc::SharedBitmapId /* id */) |
898 | 892 |
899 // Fetches complete rendered content of a web page as plain text. | 893 // Fetches complete rendered content of a web page as plain text. |
900 IPC_MESSAGE_ROUTED0(ViewMsg_GetRenderedText) | 894 IPC_MESSAGE_ROUTED0(ViewMsg_GetRenderedText) |
901 | 895 |
902 #if defined(OS_MACOSX) | 896 #if defined(OS_MACOSX) |
903 // Notification of a change in scrollbar appearance and/or behavior. | 897 // Notification of a change in scrollbar appearance and/or behavior. |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1288 IPC_MESSAGE_ROUTED3( | 1282 IPC_MESSAGE_ROUTED3( |
1289 ViewHostMsg_SwapCompositorFrame, | 1283 ViewHostMsg_SwapCompositorFrame, |
1290 uint32 /* output_surface_id */, | 1284 uint32 /* output_surface_id */, |
1291 cc::CompositorFrame /* frame */, | 1285 cc::CompositorFrame /* frame */, |
1292 std::vector<IPC::Message> /* messages_to_deliver_with_frame */) | 1286 std::vector<IPC::Message> /* messages_to_deliver_with_frame */) |
1293 | 1287 |
1294 // Send back a string to be recorded by UserMetrics. | 1288 // Send back a string to be recorded by UserMetrics. |
1295 IPC_MESSAGE_CONTROL1(ViewHostMsg_UserMetricsRecordAction, | 1289 IPC_MESSAGE_CONTROL1(ViewHostMsg_UserMetricsRecordAction, |
1296 std::string /* action */) | 1290 std::string /* action */) |
1297 | 1291 |
1298 // Notifies the browser that the page was or was not saved as MHTML. | |
1299 IPC_MESSAGE_CONTROL2(ViewHostMsg_SavedPageAsMHTML, | |
1300 int /* job_id */, | |
1301 int64 /* size of the MHTML file, -1 if error */) | |
1302 | |
1303 // Notifies the browser of an event occurring in the media pipeline. | 1292 // Notifies the browser of an event occurring in the media pipeline. |
1304 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvents, | 1293 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvents, |
1305 std::vector<media::MediaLogEvent> /* events */) | 1294 std::vector<media::MediaLogEvent> /* events */) |
1306 | 1295 |
1307 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message | 1296 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message |
1308 // being sent back. | 1297 // being sent back. |
1309 // |privileged| is used by Pepper Flash. If this flag is set to true, we won't | 1298 // |privileged| is used by Pepper Flash. If this flag is set to true, we won't |
1310 // pop up a bubble to ask for user permission or take mouse lock content into | 1299 // pop up a bubble to ask for user permission or take mouse lock content into |
1311 // account. | 1300 // account. |
1312 IPC_MESSAGE_ROUTED3(ViewHostMsg_LockMouse, | 1301 IPC_MESSAGE_ROUTED3(ViewHostMsg_LockMouse, |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1424 // Instructs the browser to start plugin IME. | 1413 // Instructs the browser to start plugin IME. |
1425 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) | 1414 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) |
1426 | 1415 |
1427 // Receives content of a web page as plain text. | 1416 // Receives content of a web page as plain text. |
1428 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) | 1417 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) |
1429 #endif | 1418 #endif |
1430 | 1419 |
1431 // Adding a new message? Stick to the sort order above: first platform | 1420 // Adding a new message? Stick to the sort order above: first platform |
1432 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1421 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
1433 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1422 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |