| 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 825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 874 | 873 |
| 875 // Tells the renderer to empty its plugin list cache, optional reloading | 874 // Tells the renderer to empty its plugin list cache, optional reloading |
| 876 // pages containing plugins. | 875 // pages containing plugins. |
| 877 IPC_MESSAGE_CONTROL1(ViewMsg_PurgePluginListCache, | 876 IPC_MESSAGE_CONTROL1(ViewMsg_PurgePluginListCache, |
| 878 bool /* reload_pages */) | 877 bool /* reload_pages */) |
| 879 #endif | 878 #endif |
| 880 | 879 |
| 881 // Used to instruct the RenderView to go into "view source" mode. | 880 // Used to instruct the RenderView to go into "view source" mode. |
| 882 IPC_MESSAGE_ROUTED0(ViewMsg_EnableViewSourceMode) | 881 IPC_MESSAGE_ROUTED0(ViewMsg_EnableViewSourceMode) |
| 883 | 882 |
| 884 // Instructs the renderer to save the current page to MHTML. | |
| 885 IPC_MESSAGE_ROUTED2(ViewMsg_SavePageAsMHTML, | |
| 886 int /* job_id */, | |
| 887 IPC::PlatformFileForTransit /* file handle */) | |
| 888 | |
| 889 // An acknowledge to ViewHostMsg_MultipleTargetsTouched to notify the renderer | 883 // An acknowledge to ViewHostMsg_MultipleTargetsTouched to notify the renderer |
| 890 // process to release the magnified image. | 884 // process to release the magnified image. |
| 891 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupBitmap, | 885 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupBitmap, |
| 892 cc::SharedBitmapId /* id */) | 886 cc::SharedBitmapId /* id */) |
| 893 | 887 |
| 894 // Fetches complete rendered content of a web page as plain text. | 888 // Fetches complete rendered content of a web page as plain text. |
| 895 IPC_MESSAGE_ROUTED0(ViewMsg_GetRenderedText) | 889 IPC_MESSAGE_ROUTED0(ViewMsg_GetRenderedText) |
| 896 | 890 |
| 897 #if defined(OS_MACOSX) | 891 #if defined(OS_MACOSX) |
| 898 // Notification of a change in scrollbar appearance and/or behavior. | 892 // Notification of a change in scrollbar appearance and/or behavior. |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1283 IPC_MESSAGE_ROUTED3( | 1277 IPC_MESSAGE_ROUTED3( |
| 1284 ViewHostMsg_SwapCompositorFrame, | 1278 ViewHostMsg_SwapCompositorFrame, |
| 1285 uint32 /* output_surface_id */, | 1279 uint32 /* output_surface_id */, |
| 1286 cc::CompositorFrame /* frame */, | 1280 cc::CompositorFrame /* frame */, |
| 1287 std::vector<IPC::Message> /* messages_to_deliver_with_frame */) | 1281 std::vector<IPC::Message> /* messages_to_deliver_with_frame */) |
| 1288 | 1282 |
| 1289 // Send back a string to be recorded by UserMetrics. | 1283 // Send back a string to be recorded by UserMetrics. |
| 1290 IPC_MESSAGE_CONTROL1(ViewHostMsg_UserMetricsRecordAction, | 1284 IPC_MESSAGE_CONTROL1(ViewHostMsg_UserMetricsRecordAction, |
| 1291 std::string /* action */) | 1285 std::string /* action */) |
| 1292 | 1286 |
| 1293 // Notifies the browser that the page was or was not saved as MHTML. | |
| 1294 IPC_MESSAGE_CONTROL2(ViewHostMsg_SavedPageAsMHTML, | |
| 1295 int /* job_id */, | |
| 1296 int64 /* size of the MHTML file, -1 if error */) | |
| 1297 | |
| 1298 // Notifies the browser of an event occurring in the media pipeline. | 1287 // Notifies the browser of an event occurring in the media pipeline. |
| 1299 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvents, | 1288 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvents, |
| 1300 std::vector<media::MediaLogEvent> /* events */) | 1289 std::vector<media::MediaLogEvent> /* events */) |
| 1301 | 1290 |
| 1302 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message | 1291 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message |
| 1303 // being sent back. | 1292 // being sent back. |
| 1304 // |privileged| is used by Pepper Flash. If this flag is set to true, we won't | 1293 // |privileged| is used by Pepper Flash. If this flag is set to true, we won't |
| 1305 // pop up a bubble to ask for user permission or take mouse lock content into | 1294 // pop up a bubble to ask for user permission or take mouse lock content into |
| 1306 // account. | 1295 // account. |
| 1307 IPC_MESSAGE_ROUTED3(ViewHostMsg_LockMouse, | 1296 IPC_MESSAGE_ROUTED3(ViewHostMsg_LockMouse, |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1419 // Instructs the browser to start plugin IME. | 1408 // Instructs the browser to start plugin IME. |
| 1420 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) | 1409 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) |
| 1421 | 1410 |
| 1422 // Receives content of a web page as plain text. | 1411 // Receives content of a web page as plain text. |
| 1423 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) | 1412 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) |
| 1424 #endif | 1413 #endif |
| 1425 | 1414 |
| 1426 // Adding a new message? Stick to the sort order above: first platform | 1415 // Adding a new message? Stick to the sort order above: first platform |
| 1427 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1416 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 1428 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1417 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |