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/message_port.h" |
23 #include "content/common/navigation_gesture.h" | 24 #include "content/common/navigation_gesture.h" |
24 #include "content/common/resize_params.h" | 25 #include "content/common/resize_params.h" |
25 #include "content/common/text_input_state.h" | 26 #include "content/common/text_input_state.h" |
26 #include "content/common/view_message_enums.h" | 27 #include "content/common/view_message_enums.h" |
27 #include "content/public/common/common_param_traits.h" | 28 #include "content/public/common/common_param_traits.h" |
28 #include "content/public/common/favicon_url.h" | 29 #include "content/public/common/favicon_url.h" |
29 #include "content/public/common/menu_item.h" | 30 #include "content/public/common/menu_item.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" |
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
694 | 695 |
695 // A renderer sends this to the browser process when a document has been | 696 // A renderer sends this to the browser process when a document has been |
696 // detached. The browser will use this to constrain the lifecycle of worker | 697 // detached. The browser will use this to constrain the lifecycle of worker |
697 // processes (SharedWorkers are shut down when their last associated document | 698 // processes (SharedWorkers are shut down when their last associated document |
698 // is detached). | 699 // is detached). |
699 IPC_MESSAGE_CONTROL1(ViewHostMsg_DocumentDetached, uint64_t /* document_id */) | 700 IPC_MESSAGE_CONTROL1(ViewHostMsg_DocumentDetached, uint64_t /* document_id */) |
700 | 701 |
701 // A renderer sends this to the browser process when it wants to connect to a | 702 // A renderer sends this to the browser process when it wants to connect to a |
702 // worker. | 703 // worker. |
703 IPC_MESSAGE_CONTROL2(ViewHostMsg_ConnectToWorker, | 704 IPC_MESSAGE_CONTROL2(ViewHostMsg_ConnectToWorker, |
704 int /* route_id */, | 705 int32_t /* worker_route_id */, |
705 int /* sent_message_port_id */) | 706 content::MessagePort /* port */) |
706 | 707 |
707 // Tells the browser that a specific Appcache manifest in the current page | 708 // Tells the browser that a specific Appcache manifest in the current page |
708 // was accessed. | 709 // was accessed. |
709 IPC_MESSAGE_ROUTED2(ViewHostMsg_AppCacheAccessed, | 710 IPC_MESSAGE_ROUTED2(ViewHostMsg_AppCacheAccessed, |
710 GURL /* manifest url */, | 711 GURL /* manifest url */, |
711 bool /* blocked by policy */) | 712 bool /* blocked by policy */) |
712 | 713 |
713 // Used to go to the session history entry at the given offset (ie, -1 will | 714 // Used to go to the session history entry at the given offset (ie, -1 will |
714 // return the "back" item). | 715 // return the "back" item). |
715 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset, | 716 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset, |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
882 int /* y */) | 883 int /* y */) |
883 | 884 |
884 #elif defined(OS_MACOSX) | 885 #elif defined(OS_MACOSX) |
885 // Receives content of a web page as plain text. | 886 // Receives content of a web page as plain text. |
886 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) | 887 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) |
887 #endif | 888 #endif |
888 | 889 |
889 // Adding a new message? Stick to the sort order above: first platform | 890 // Adding a new message? Stick to the sort order above: first platform |
890 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 891 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
891 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 892 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |