Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(298)

Side by Side Diff: content/common/view_messages.h

Issue 12780024: Split FaviconHelper in two: ImageLoadingHelper and FaviconHelper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix build Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 2065 matching lines...) Expand 10 before | Expand all | Expand 10 after
2276 2283
2277 // Notifies the browser that the frame with the given id was detached. 2284 // Notifies the browser that the frame with the given id was detached.
2278 IPC_MESSAGE_ROUTED1(ViewHostMsg_FrameDetached, 2285 IPC_MESSAGE_ROUTED1(ViewHostMsg_FrameDetached,
2279 int64 /* frame_id */) 2286 int64 /* frame_id */)
2280 2287
2281 // Notifies the browser that document has parsed the body. This is used by the 2288 // Notifies the browser that document has parsed the body. This is used by the
2282 // ResourceScheduler as an indication that bandwidth contention won't block 2289 // ResourceScheduler as an indication that bandwidth contention won't block
2283 // first paint. 2290 // first paint.
2284 IPC_MESSAGE_ROUTED0(ViewHostMsg_WillInsertBody) 2291 IPC_MESSAGE_ROUTED0(ViewHostMsg_WillInsertBody)
2285 2292
2293 // Notification that the urls for the favicon of a site has been determined.
2294 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateFaviconURL,
2295 int32 /* page_id */,
2296 std::vector<content::FaviconURL> /* urls of the favicon */)
jam 2013/03/21 01:14:51 nit: convention is that the comment contains the p
Dmitry Titov 2013/03/27 22:41:13 Done.
2297
2286 #if defined(OS_ANDROID) 2298 #if defined(OS_ANDROID)
2287 // Response to ViewMsg_FindMatchRects. 2299 // Response to ViewMsg_FindMatchRects.
2288 // 2300 //
2289 // |version| will contain the current version number of the renderer's find 2301 // |version| will contain the current version number of the renderer's find
2290 // match list (incremented whenever they change), which should be passed in the 2302 // match list (incremented whenever they change), which should be passed in the
2291 // next call to ViewMsg_FindMatchRects. 2303 // next call to ViewMsg_FindMatchRects.
2292 // 2304 //
2293 // |rects| will either contain a list of the enclosing rects of all matches 2305 // |rects| will either contain a list of the enclosing rects of all matches
2294 // found by the most recent Find operation, or will be empty if |version| is not 2306 // found by the most recent Find operation, or will be empty if |version| is not
2295 // greater than the |current_version| passed to ViewMsg_FindMatchRects (hence 2307 // greater than the |current_version| passed to ViewMsg_FindMatchRects (hence
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
2418 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters 2430 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters
2419 // for details. 2431 // for details.
2420 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, 2432 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters,
2421 LOGFONT /* font_data */, 2433 LOGFONT /* font_data */,
2422 string16 /* characters */) 2434 string16 /* characters */)
2423 #endif 2435 #endif
2424 2436
2425 // Adding a new message? Stick to the sort order above: first platform 2437 // Adding a new message? Stick to the sort order above: first platform
2426 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 2438 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
2427 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 2439 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698