| 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 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 702 | 703 |
| 703 // A renderer sends this to the browser process when a document has been | 704 // A renderer sends this to the browser process when a document has been |
| 704 // detached. The browser will use this to constrain the lifecycle of worker | 705 // detached. The browser will use this to constrain the lifecycle of worker |
| 705 // processes (SharedWorkers are shut down when their last associated document | 706 // processes (SharedWorkers are shut down when their last associated document |
| 706 // is detached). | 707 // is detached). |
| 707 IPC_MESSAGE_CONTROL1(ViewHostMsg_DocumentDetached, uint64_t /* document_id */) | 708 IPC_MESSAGE_CONTROL1(ViewHostMsg_DocumentDetached, uint64_t /* document_id */) |
| 708 | 709 |
| 709 // A renderer sends this to the browser process when it wants to connect to a | 710 // A renderer sends this to the browser process when it wants to connect to a |
| 710 // worker. | 711 // worker. |
| 711 IPC_MESSAGE_CONTROL2(ViewHostMsg_ConnectToWorker, | 712 IPC_MESSAGE_CONTROL2(ViewHostMsg_ConnectToWorker, |
| 712 int /* route_id */, | 713 int32_t /* worker_route_id */, |
| 713 int /* sent_message_port_id */) | 714 content::MessagePort /* port */) |
| 714 | 715 |
| 715 // Tells the browser that a specific Appcache manifest in the current page | 716 // Tells the browser that a specific Appcache manifest in the current page |
| 716 // was accessed. | 717 // was accessed. |
| 717 IPC_MESSAGE_ROUTED2(ViewHostMsg_AppCacheAccessed, | 718 IPC_MESSAGE_ROUTED2(ViewHostMsg_AppCacheAccessed, |
| 718 GURL /* manifest url */, | 719 GURL /* manifest url */, |
| 719 bool /* blocked by policy */) | 720 bool /* blocked by policy */) |
| 720 | 721 |
| 721 // Used to go to the session history entry at the given offset (ie, -1 will | 722 // Used to go to the session history entry at the given offset (ie, -1 will |
| 722 // return the "back" item). | 723 // return the "back" item). |
| 723 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset, | 724 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset, |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 884 int /* y */) | 885 int /* y */) |
| 885 | 886 |
| 886 #elif defined(OS_MACOSX) | 887 #elif defined(OS_MACOSX) |
| 887 // Receives content of a web page as plain text. | 888 // Receives content of a web page as plain text. |
| 888 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) | 889 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) |
| 889 #endif | 890 #endif |
| 890 | 891 |
| 891 // Adding a new message? Stick to the sort order above: first platform | 892 // Adding a new message? Stick to the sort order above: first platform |
| 892 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 893 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 893 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 894 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |