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/process.h" | 8 #include "base/process.h" |
9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
11 #include "cc/output/compositor_frame.h" | 11 #include "cc/output/compositor_frame.h" |
12 #include "cc/output/compositor_frame_ack.h" | 12 #include "cc/output/compositor_frame_ack.h" |
13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
14 #include "content/common/content_param_traits.h" | 14 #include "content/common/content_param_traits.h" |
15 #include "content/common/edit_command.h" | 15 #include "content/common/edit_command.h" |
16 #include "content/common/navigation_gesture.h" | 16 #include "content/common/navigation_gesture.h" |
17 #include "content/common/pepper_renderer_instance_data.h" | 17 #include "content/common/pepper_renderer_instance_data.h" |
18 #include "content/common/view_message_enums.h" | 18 #include "content/common/view_message_enums.h" |
19 #include "content/port/common/input_event_ack_state.h" | 19 #include "content/port/common/input_event_ack_state.h" |
20 #include "content/public/common/common_param_traits.h" | 20 #include "content/public/common/common_param_traits.h" |
21 #include "content/public/common/context_menu_params.h" | 21 #include "content/public/common/context_menu_params.h" |
| 22 #include "content/public/common/favicon_url.h" |
22 #include "content/public/common/file_chooser_params.h" | 23 #include "content/public/common/file_chooser_params.h" |
23 #include "content/public/common/frame_navigate_params.h" | 24 #include "content/public/common/frame_navigate_params.h" |
24 #include "content/public/common/javascript_message_type.h" | 25 #include "content/public/common/javascript_message_type.h" |
25 #include "content/public/common/page_zoom.h" | 26 #include "content/public/common/page_zoom.h" |
26 #include "content/public/common/referrer.h" | 27 #include "content/public/common/referrer.h" |
27 #include "content/public/common/renderer_preferences.h" | 28 #include "content/public/common/renderer_preferences.h" |
28 #include "content/public/common/stop_find_action.h" | 29 #include "content/public/common/stop_find_action.h" |
29 #include "content/public/common/three_d_api_types.h" | 30 #include "content/public/common/three_d_api_types.h" |
30 #include "content/public/common/window_container_type.h" | 31 #include "content/public/common/window_container_type.h" |
31 #include "ipc/ipc_channel_handle.h" | 32 #include "ipc/ipc_channel_handle.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 68 |
68 IPC_ENUM_TRAITS(AccessibilityMode) | 69 IPC_ENUM_TRAITS(AccessibilityMode) |
69 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value) | 70 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value) |
70 IPC_ENUM_TRAITS(WebKit::WebContextMenuData::MediaType) | 71 IPC_ENUM_TRAITS(WebKit::WebContextMenuData::MediaType) |
71 IPC_ENUM_TRAITS(WebKit::WebMediaPlayerAction::Type) | 72 IPC_ENUM_TRAITS(WebKit::WebMediaPlayerAction::Type) |
72 IPC_ENUM_TRAITS(WebKit::WebPluginAction::Type) | 73 IPC_ENUM_TRAITS(WebKit::WebPluginAction::Type) |
73 IPC_ENUM_TRAITS(WebKit::WebPopupType) | 74 IPC_ENUM_TRAITS(WebKit::WebPopupType) |
74 IPC_ENUM_TRAITS(WebKit::WebTextDirection) | 75 IPC_ENUM_TRAITS(WebKit::WebTextDirection) |
75 IPC_ENUM_TRAITS(WebMenuItem::Type) | 76 IPC_ENUM_TRAITS(WebMenuItem::Type) |
76 IPC_ENUM_TRAITS(WindowContainerType) | 77 IPC_ENUM_TRAITS(WindowContainerType) |
| 78 IPC_ENUM_TRAITS(content::FaviconURL::IconType) |
77 IPC_ENUM_TRAITS(content::FileChooserParams::Mode) | 79 IPC_ENUM_TRAITS(content::FileChooserParams::Mode) |
78 IPC_ENUM_TRAITS(content::InputEventAckState) | 80 IPC_ENUM_TRAITS(content::InputEventAckState) |
79 IPC_ENUM_TRAITS(content::JavaScriptMessageType) | 81 IPC_ENUM_TRAITS(content::JavaScriptMessageType) |
80 IPC_ENUM_TRAITS(content::NavigationGesture) | 82 IPC_ENUM_TRAITS(content::NavigationGesture) |
81 IPC_ENUM_TRAITS(content::PageZoom) | 83 IPC_ENUM_TRAITS(content::PageZoom) |
82 IPC_ENUM_TRAITS(content::RendererPreferencesHintingEnum) | 84 IPC_ENUM_TRAITS(content::RendererPreferencesHintingEnum) |
83 IPC_ENUM_TRAITS(content::RendererPreferencesSubpixelRenderingEnum) | 85 IPC_ENUM_TRAITS(content::RendererPreferencesSubpixelRenderingEnum) |
84 IPC_ENUM_TRAITS(content::StopFindAction) | 86 IPC_ENUM_TRAITS(content::StopFindAction) |
85 IPC_ENUM_TRAITS(content::ThreeDAPIType) | 87 IPC_ENUM_TRAITS(content::ThreeDAPIType) |
86 IPC_ENUM_TRAITS(media::ChannelLayout) | 88 IPC_ENUM_TRAITS(media::ChannelLayout) |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 IPC_STRUCT_TRAITS_MEMBER(is_pepper_menu) | 193 IPC_STRUCT_TRAITS_MEMBER(is_pepper_menu) |
192 IPC_STRUCT_TRAITS_MEMBER(request_id) | 194 IPC_STRUCT_TRAITS_MEMBER(request_id) |
193 IPC_STRUCT_TRAITS_MEMBER(render_widget_id) | 195 IPC_STRUCT_TRAITS_MEMBER(render_widget_id) |
194 IPC_STRUCT_TRAITS_END() | 196 IPC_STRUCT_TRAITS_END() |
195 | 197 |
196 IPC_STRUCT_TRAITS_BEGIN(content::EditCommand) | 198 IPC_STRUCT_TRAITS_BEGIN(content::EditCommand) |
197 IPC_STRUCT_TRAITS_MEMBER(name) | 199 IPC_STRUCT_TRAITS_MEMBER(name) |
198 IPC_STRUCT_TRAITS_MEMBER(value) | 200 IPC_STRUCT_TRAITS_MEMBER(value) |
199 IPC_STRUCT_TRAITS_END() | 201 IPC_STRUCT_TRAITS_END() |
200 | 202 |
| 203 IPC_STRUCT_TRAITS_BEGIN(content::FaviconURL) |
| 204 IPC_STRUCT_TRAITS_MEMBER(icon_url) |
| 205 IPC_STRUCT_TRAITS_MEMBER(icon_type) |
| 206 IPC_STRUCT_TRAITS_END() |
| 207 |
201 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserParams) | 208 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserParams) |
202 IPC_STRUCT_TRAITS_MEMBER(mode) | 209 IPC_STRUCT_TRAITS_MEMBER(mode) |
203 IPC_STRUCT_TRAITS_MEMBER(title) | 210 IPC_STRUCT_TRAITS_MEMBER(title) |
204 IPC_STRUCT_TRAITS_MEMBER(default_file_name) | 211 IPC_STRUCT_TRAITS_MEMBER(default_file_name) |
205 IPC_STRUCT_TRAITS_MEMBER(accept_types) | 212 IPC_STRUCT_TRAITS_MEMBER(accept_types) |
206 #if defined(OS_ANDROID) | 213 #if defined(OS_ANDROID) |
207 IPC_STRUCT_TRAITS_MEMBER(capture) | 214 IPC_STRUCT_TRAITS_MEMBER(capture) |
208 #endif | 215 #endif |
209 IPC_STRUCT_TRAITS_END() | 216 IPC_STRUCT_TRAITS_END() |
210 | 217 |
(...skipping 2077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2288 | 2295 |
2289 // Notifies the browser that the frame with the given id was detached. | 2296 // Notifies the browser that the frame with the given id was detached. |
2290 IPC_MESSAGE_ROUTED1(ViewHostMsg_FrameDetached, | 2297 IPC_MESSAGE_ROUTED1(ViewHostMsg_FrameDetached, |
2291 int64 /* frame_id */) | 2298 int64 /* frame_id */) |
2292 | 2299 |
2293 // Notifies the browser that document has parsed the body. This is used by the | 2300 // Notifies the browser that document has parsed the body. This is used by the |
2294 // ResourceScheduler as an indication that bandwidth contention won't block | 2301 // ResourceScheduler as an indication that bandwidth contention won't block |
2295 // first paint. | 2302 // first paint. |
2296 IPC_MESSAGE_ROUTED0(ViewHostMsg_WillInsertBody) | 2303 IPC_MESSAGE_ROUTED0(ViewHostMsg_WillInsertBody) |
2297 | 2304 |
| 2305 // Notification that the urls for the favicon of a site has been determined. |
| 2306 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateFaviconURL, |
| 2307 int32 /* page_id */, |
| 2308 std::vector<content::FaviconURL> /* candidates */) |
| 2309 |
2298 #if defined(OS_ANDROID) | 2310 #if defined(OS_ANDROID) |
2299 // Response to ViewMsg_FindMatchRects. | 2311 // Response to ViewMsg_FindMatchRects. |
2300 // | 2312 // |
2301 // |version| will contain the current version number of the renderer's find | 2313 // |version| will contain the current version number of the renderer's find |
2302 // match list (incremented whenever they change), which should be passed in the | 2314 // match list (incremented whenever they change), which should be passed in the |
2303 // next call to ViewMsg_FindMatchRects. | 2315 // next call to ViewMsg_FindMatchRects. |
2304 // | 2316 // |
2305 // |rects| will either contain a list of the enclosing rects of all matches | 2317 // |rects| will either contain a list of the enclosing rects of all matches |
2306 // found by the most recent Find operation, or will be empty if |version| is not | 2318 // found by the most recent Find operation, or will be empty if |version| is not |
2307 // greater than the |current_version| passed to ViewMsg_FindMatchRects (hence | 2319 // greater than the |current_version| passed to ViewMsg_FindMatchRects (hence |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2378 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters | 2390 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters |
2379 // for details. | 2391 // for details. |
2380 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, | 2392 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, |
2381 LOGFONT /* font_data */, | 2393 LOGFONT /* font_data */, |
2382 string16 /* characters */) | 2394 string16 /* characters */) |
2383 #endif | 2395 #endif |
2384 | 2396 |
2385 // Adding a new message? Stick to the sort order above: first platform | 2397 // Adding a new message? Stick to the sort order above: first platform |
2386 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2398 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
2387 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2399 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |