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

Side by Side Diff: chrome/common/render_messages_internal.h

Issue 20072: Finish taking out render_messages.h include from other headers. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // This header is meant to be included in multiple passes, hence no traditional 5 // This header is meant to be included in multiple passes, hence no traditional
6 // header guard. 6 // header guard.
7 // See ipc_message_macros.h for explanation of the macros and passes. 7 // See ipc_message_macros.h for explanation of the macros and passes.
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "build/build_config.h" 12 #include "build/build_config.h"
13 13
14 #include "base/clipboard.h" 14 #include "base/clipboard.h"
15 #include "base/gfx/rect.h" 15 #include "base/gfx/rect.h"
16 #include "base/gfx/native_widget_types.h" 16 #include "base/gfx/native_widget_types.h"
17 #include "base/shared_memory.h" 17 #include "base/shared_memory.h"
18 #include "chrome/common/ipc_message_macros.h" 18 #include "chrome/common/ipc_message_macros.h"
19 #include "skia/include/SkBitmap.h" 19 #include "skia/include/SkBitmap.h"
20 #include "webkit/glue/console_message_level.h" 20 #include "webkit/glue/console_message_level.h"
21 #include "webkit/glue/context_node_types.h"
22 #include "webkit/glue/dom_operations.h" 21 #include "webkit/glue/dom_operations.h"
23 #include "webkit/glue/screen_info.h" 22 #include "webkit/glue/screen_info.h"
24 #include "webkit/glue/webcursor.h" 23 #include "webkit/glue/webcursor.h"
25 #include "webkit/glue/webinputevent.h" 24 #include "webkit/glue/webinputevent.h"
26 #include "webkit/glue/webplugin.h" 25 #include "webkit/glue/webplugin.h"
27 26
28 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes 27 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes
29 // more sense with our current design. 28 // more sense with our current design.
30 29
31 //----------------------------------------------------------------------------- 30 //-----------------------------------------------------------------------------
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // handle is valid in the context of the renderer. 162 // handle is valid in the context of the renderer.
164 IPC_MESSAGE_CONTROL1(ViewMsg_UserScripts_NewScripts, base::SharedMemoryHandle) 163 IPC_MESSAGE_CONTROL1(ViewMsg_UserScripts_NewScripts, base::SharedMemoryHandle)
165 164
166 // Sent when the user wants to search for a word on the page (find in page). 165 // Sent when the user wants to search for a word on the page (find in page).
167 // Request parameters are passed in as a FindInPageMsg_Request struct. 166 // Request parameters are passed in as a FindInPageMsg_Request struct.
168 IPC_MESSAGE_ROUTED1(ViewMsg_Find, FindInPageRequest) 167 IPC_MESSAGE_ROUTED1(ViewMsg_Find, FindInPageRequest)
169 168
170 // Sent when the headers are available for a resource request. 169 // Sent when the headers are available for a resource request.
171 IPC_MESSAGE_ROUTED2(ViewMsg_Resource_ReceivedResponse, 170 IPC_MESSAGE_ROUTED2(ViewMsg_Resource_ReceivedResponse,
172 int /* request_id */, 171 int /* request_id */,
173 ViewMsg_Resource_ResponseHead) 172 ResourceResponseHead)
174 173
175 // Sent as upload progress is being made 174 // Sent as upload progress is being made
176 IPC_MESSAGE_ROUTED3(ViewMsg_Resource_UploadProgress, 175 IPC_MESSAGE_ROUTED3(ViewMsg_Resource_UploadProgress,
177 int /* request_id */, 176 int /* request_id */,
178 int64 /* position */, 177 int64 /* position */,
179 int64 /* size */) 178 int64 /* size */)
180 179
181 // Sent when the request has been redirected. 180 // Sent when the request has been redirected.
182 IPC_MESSAGE_ROUTED2(ViewMsg_Resource_ReceivedRedirect, 181 IPC_MESSAGE_ROUTED2(ViewMsg_Resource_ReceivedRedirect,
183 int /* request_id */, 182 int /* request_id */,
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 374
376 // Used to instruct the RenderView to go into "view source" mode. 375 // Used to instruct the RenderView to go into "view source" mode.
377 IPC_MESSAGE_ROUTED0(ViewMsg_EnableViewSourceMode) 376 IPC_MESSAGE_ROUTED0(ViewMsg_EnableViewSourceMode)
378 377
379 IPC_MESSAGE_ROUTED2(ViewMsg_UpdateBackForwardListCount, 378 IPC_MESSAGE_ROUTED2(ViewMsg_UpdateBackForwardListCount,
380 int /* back_list_count */, 379 int /* back_list_count */,
381 int /* forward_list_count */) 380 int /* forward_list_count */)
382 381
383 // Retreive information from the MSAA DOM subtree, for accessibility purposes. 382 // Retreive information from the MSAA DOM subtree, for accessibility purposes.
384 IPC_SYNC_MESSAGE_ROUTED1_1(ViewMsg_GetAccessibilityInfo, 383 IPC_SYNC_MESSAGE_ROUTED1_1(ViewMsg_GetAccessibilityInfo,
385 ViewMsg_Accessibility_In_Params 384 AccessibilityInParams
386 /* input parameters */, 385 /* input parameters */,
387 ViewHostMsg_Accessibility_Out_Params 386 AccessibilityOutParams
388 /* output parameters */) 387 /* output parameters */)
389 388
390 // Requests the renderer to clear cashed accessibility information. Takes an 389 // Requests the renderer to clear cashed accessibility information. Takes an
391 // id to clear a specific hashmap entry, and a bool; true clears all, false 390 // id to clear a specific hashmap entry, and a bool; true clears all, false
392 // does not. 391 // does not.
393 IPC_MESSAGE_ROUTED2(ViewMsg_ClearAccessibilityInfo, 392 IPC_MESSAGE_ROUTED2(ViewMsg_ClearAccessibilityInfo,
394 int /* iaccessible_id */, 393 int /* iaccessible_id */,
395 bool /* clear_all */) 394 bool /* clear_all */)
396 395
397 // Get all savable resource links from current webpage, include main 396 // Get all savable resource links from current webpage, include main
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 ViewHostMsg_Resource_Request) 654 ViewHostMsg_Resource_Request)
656 655
657 // Cancels a resource request with the ID given as the parameter. 656 // Cancels a resource request with the ID given as the parameter.
658 IPC_MESSAGE_ROUTED1(ViewHostMsg_CancelRequest, 657 IPC_MESSAGE_ROUTED1(ViewHostMsg_CancelRequest,
659 int /* request_id */) 658 int /* request_id */)
660 659
661 // Makes a synchronous resource request via the browser. 660 // Makes a synchronous resource request via the browser.
662 IPC_SYNC_MESSAGE_ROUTED2_1(ViewHostMsg_SyncLoad, 661 IPC_SYNC_MESSAGE_ROUTED2_1(ViewHostMsg_SyncLoad,
663 int /* request_id */, 662 int /* request_id */,
664 ViewHostMsg_Resource_Request, 663 ViewHostMsg_Resource_Request,
665 ViewHostMsg_SyncLoad_Result) 664 SyncLoadResult)
666 665
667 // Used to set a cookie. The cookie is set asynchronously, but will be 666 // Used to set a cookie. The cookie is set asynchronously, but will be
668 // available to a subsequent ViewHostMsg_GetCookies request. 667 // available to a subsequent ViewHostMsg_GetCookies request.
669 IPC_MESSAGE_CONTROL3(ViewHostMsg_SetCookie, 668 IPC_MESSAGE_CONTROL3(ViewHostMsg_SetCookie,
670 GURL /* url */, 669 GURL /* url */,
671 GURL /* policy_url */, 670 GURL /* policy_url */,
672 std::string /* cookie */) 671 std::string /* cookie */)
673 672
674 // Used to get cookies for the given URL 673 // Used to get cookies for the given URL
675 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_GetCookies, 674 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_GetCookies,
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 743
745 // Notification that the url for the favicon of a site has been determined. 744 // Notification that the url for the favicon of a site has been determined.
746 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateFavIconURL, 745 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateFavIconURL,
747 int32 /* page_id */, 746 int32 /* page_id */,
748 GURL /* url of the favicon */) 747 GURL /* url of the favicon */)
749 748
750 // Used to tell the parent that the user right clicked on an area of the 749 // Used to tell the parent that the user right clicked on an area of the
751 // content area, and a context menu should be shown for it. The params 750 // content area, and a context menu should be shown for it. The params
752 // object contains information about the node(s) that were selected when the 751 // object contains information about the node(s) that were selected when the
753 // user right clicked. 752 // user right clicked.
754 IPC_MESSAGE_ROUTED1(ViewHostMsg_ContextMenu, ViewHostMsg_ContextMenu_Params) 753 IPC_MESSAGE_ROUTED1(ViewHostMsg_ContextMenu, ContextMenuParams)
755 754
756 // Request that the given URL be opened in the specified manner. 755 // Request that the given URL be opened in the specified manner.
757 IPC_MESSAGE_ROUTED3(ViewHostMsg_OpenURL, 756 IPC_MESSAGE_ROUTED3(ViewHostMsg_OpenURL,
758 GURL /* url */, 757 GURL /* url */,
759 GURL /* referrer */, 758 GURL /* referrer */,
760 WindowOpenDisposition /* disposition */) 759 WindowOpenDisposition /* disposition */)
761 760
762 // Following message is used to communicate the values received by the 761 // Following message is used to communicate the values received by the
763 // callback binding the JS to Cpp. 762 // callback binding the JS to Cpp.
764 // An instance of browser that has an automation host listening to it can 763 // An instance of browser that has an automation host listening to it can
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
1102 1101
1103 // Get the list of proxies to use for |url|, as a semicolon delimited list 1102 // Get the list of proxies to use for |url|, as a semicolon delimited list
1104 // of "<TYPE> <HOST>:<PORT>" | "DIRECT". See also 1103 // of "<TYPE> <HOST>:<PORT>" | "DIRECT". See also
1105 // PluginProcessHostMsg_ResolveProxy which does the same thing. 1104 // PluginProcessHostMsg_ResolveProxy which does the same thing.
1106 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_ResolveProxy, 1105 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_ResolveProxy,
1107 GURL /* url */, 1106 GURL /* url */,
1108 int /* network error */, 1107 int /* network error */,
1109 std::string /* proxy list */) 1108 std::string /* proxy list */)
1110 1109
1111 IPC_END_MESSAGES(ViewHost) 1110 IPC_END_MESSAGES(ViewHost)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698