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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include "base/memory/shared_memory.h" | 11 #include "base/memory/shared_memory.h" |
12 #include "base/process/process.h" | 12 #include "base/process/process.h" |
13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
15 #include "cc/ipc/cc_param_traits.h" | 15 #include "cc/ipc/cc_param_traits.h" |
16 #include "cc/output/begin_frame_args.h" | 16 #include "cc/output/begin_frame_args.h" |
17 #include "cc/output/compositor_frame.h" | 17 #include "cc/output/compositor_frame.h" |
18 #include "cc/resources/shared_bitmap.h" | 18 #include "cc/resources/shared_bitmap.h" |
19 #include "content/common/content_export.h" | 19 #include "content/common/content_export.h" |
20 #include "content/common/content_param_traits.h" | 20 #include "content/common/content_param_traits.h" |
21 #include "content/common/date_time_suggestion.h" | 21 #include "content/common/date_time_suggestion.h" |
22 #include "content/common/frame_replication_state.h" | 22 #include "content/common/frame_replication_state.h" |
23 #include "content/common/navigation_gesture.h" | 23 #include "content/common/navigation_gesture.h" |
24 #include "content/common/resize_params.h" | 24 #include "content/common/resize_params.h" |
25 #include "content/common/text_input_state.h" | 25 #include "content/common/text_input_state.h" |
26 #include "content/common/view_message_enums.h" | 26 #include "content/common/view_message_enums.h" |
27 #include "content/public/common/common_param_traits.h" | 27 #include "content/public/common/common_param_traits.h" |
28 #include "content/public/common/favicon_url.h" | 28 #include "content/public/common/favicon_url.h" |
29 #include "content/public/common/menu_item.h" | 29 #include "content/public/common/menu_item.h" |
| 30 #include "content/public/common/message_port.h" |
30 #include "content/public/common/page_state.h" | 31 #include "content/public/common/page_state.h" |
31 #include "content/public/common/page_zoom.h" | 32 #include "content/public/common/page_zoom.h" |
32 #include "content/public/common/referrer.h" | 33 #include "content/public/common/referrer.h" |
33 #include "content/public/common/renderer_preferences.h" | 34 #include "content/public/common/renderer_preferences.h" |
34 #include "content/public/common/screen_info.h" | 35 #include "content/public/common/screen_info.h" |
35 #include "content/public/common/three_d_api_types.h" | 36 #include "content/public/common/three_d_api_types.h" |
36 #include "content/public/common/window_container_type.h" | 37 #include "content/public/common/window_container_type.h" |
37 #include "ipc/ipc_channel_handle.h" | 38 #include "ipc/ipc_channel_handle.h" |
38 #include "ipc/ipc_message_macros.h" | 39 #include "ipc/ipc_message_macros.h" |
39 #include "media/base/audio_parameters.h" | 40 #include "media/base/audio_parameters.h" |
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
699 | 700 |
700 // A renderer sends this to the browser process when a document has been | 701 // A renderer sends this to the browser process when a document has been |
701 // detached. The browser will use this to constrain the lifecycle of worker | 702 // detached. The browser will use this to constrain the lifecycle of worker |
702 // processes (SharedWorkers are shut down when their last associated document | 703 // processes (SharedWorkers are shut down when their last associated document |
703 // is detached). | 704 // is detached). |
704 IPC_MESSAGE_CONTROL1(ViewHostMsg_DocumentDetached, uint64_t /* document_id */) | 705 IPC_MESSAGE_CONTROL1(ViewHostMsg_DocumentDetached, uint64_t /* document_id */) |
705 | 706 |
706 // A renderer sends this to the browser process when it wants to connect to a | 707 // A renderer sends this to the browser process when it wants to connect to a |
707 // worker. | 708 // worker. |
708 IPC_MESSAGE_CONTROL2(ViewHostMsg_ConnectToWorker, | 709 IPC_MESSAGE_CONTROL2(ViewHostMsg_ConnectToWorker, |
709 int /* route_id */, | 710 int32_t /* worker_route_id */, |
710 int /* sent_message_port_id */) | 711 content::MessagePort /* port */) |
711 | 712 |
712 // Tells the browser that a specific Appcache manifest in the current page | 713 // Tells the browser that a specific Appcache manifest in the current page |
713 // was accessed. | 714 // was accessed. |
714 IPC_MESSAGE_ROUTED2(ViewHostMsg_AppCacheAccessed, | 715 IPC_MESSAGE_ROUTED2(ViewHostMsg_AppCacheAccessed, |
715 GURL /* manifest url */, | 716 GURL /* manifest url */, |
716 bool /* blocked by policy */) | 717 bool /* blocked by policy */) |
717 | 718 |
718 // Used to go to the session history entry at the given offset (ie, -1 will | 719 // Used to go to the session history entry at the given offset (ie, -1 will |
719 // return the "back" item). | 720 // return the "back" item). |
720 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset, | 721 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset, |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
895 int /* y */) | 896 int /* y */) |
896 | 897 |
897 #elif defined(OS_MACOSX) | 898 #elif defined(OS_MACOSX) |
898 // Receives content of a web page as plain text. | 899 // Receives content of a web page as plain text. |
899 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) | 900 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) |
900 #endif | 901 #endif |
901 | 902 |
902 // Adding a new message? Stick to the sort order above: first platform | 903 // Adding a new message? Stick to the sort order above: first platform |
903 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 904 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
904 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 905 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |