Chromium Code Reviews

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

Issue 20015: Make it easier to create new IPC channel types (i.e. renderer/plugin). Inste... (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.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « chrome/common/render_messages.cc ('k') | chrome/common/resource_dispatcher_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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" 21 #include "webkit/glue/context_node_types.h"
22 #include "webkit/glue/dom_operations.h" 22 #include "webkit/glue/dom_operations.h"
23 #include "webkit/glue/screen_info.h" 23 #include "webkit/glue/screen_info.h"
24 #include "webkit/glue/webcursor.h" 24 #include "webkit/glue/webcursor.h"
25 #include "webkit/glue/webinputevent.h" 25 #include "webkit/glue/webinputevent.h"
26 #include "webkit/glue/webplugin.h" 26 #include "webkit/glue/webplugin.h"
27 27
28 void RenderMessagesInit();
29
30 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes 28 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes
31 // more sense with our current design. 29 // more sense with our current design.
32 30
33 //----------------------------------------------------------------------------- 31 //-----------------------------------------------------------------------------
34 // RenderView messages 32 // RenderView messages
35 // These are messages sent from the browser to the renderer process. 33 // These are messages sent from the browser to the renderer process.
36 34
37 IPC_BEGIN_MESSAGES(View, 1) 35 IPC_BEGIN_MESSAGES(View)
38 // Used typically when recovering from a crash. The new rendering process 36 // Used typically when recovering from a crash. The new rendering process
39 // sets its global "next page id" counter to the given value. 37 // sets its global "next page id" counter to the given value.
40 IPC_MESSAGE_CONTROL1(ViewMsg_SetNextPageID, 38 IPC_MESSAGE_CONTROL1(ViewMsg_SetNextPageID,
41 int32 /* next_page_id */) 39 int32 /* next_page_id */)
42 40
43 // Tells the renderer to create a new view. 41 // Tells the renderer to create a new view.
44 // This message is slightly different, the view it takes is the view to 42 // This message is slightly different, the view it takes is the view to
45 // create, the message itself is sent as a non-view control message. 43 // create, the message itself is sent as a non-view control message.
46 IPC_MESSAGE_CONTROL4(ViewMsg_New, 44 IPC_MESSAGE_CONTROL4(ViewMsg_New,
47 gfx::NativeViewId, /* parent window */ 45 gfx::NativeViewId, /* parent window */
(...skipping 431 matching lines...)
479 IPC_MESSAGE_ROUTED1(ViewMsg_PopupNotificationVisiblityChanged, 477 IPC_MESSAGE_ROUTED1(ViewMsg_PopupNotificationVisiblityChanged,
480 bool /* Whether it is visible */) 478 bool /* Whether it is visible */)
481 479
482 IPC_END_MESSAGES(View) 480 IPC_END_MESSAGES(View)
483 481
484 482
485 //----------------------------------------------------------------------------- 483 //-----------------------------------------------------------------------------
486 // WebContents messages 484 // WebContents messages
487 // These are messages sent from the renderer to the browser process. 485 // These are messages sent from the renderer to the browser process.
488 486
489 IPC_BEGIN_MESSAGES(ViewHost, 2) 487 IPC_BEGIN_MESSAGES(ViewHost)
490 // Sent by the renderer when it is creating a new window. The browser creates 488 // Sent by the renderer when it is creating a new window. The browser creates
491 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is 489 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is
492 // MSG_ROUTING_NONE, the view couldn't be created. modal_dialog_event is set 490 // MSG_ROUTING_NONE, the view couldn't be created. modal_dialog_event is set
493 // by the browser when a modal dialog is shown. 491 // by the browser when a modal dialog is shown.
494 IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_CreateWindow, 492 IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_CreateWindow,
495 int /* opener_id */, 493 int /* opener_id */,
496 bool /* user_gesture */, 494 bool /* user_gesture */,
497 int /* route_id */, 495 int /* route_id */,
498 ModalDialogEvent /* modal_dialog_event */) 496 ModalDialogEvent /* modal_dialog_event */)
499 497
(...skipping 231 matching lines...)
731 std::wstring /* in - default prompt */, 729 std::wstring /* in - default prompt */,
732 int /* in - dialog flags */, 730 int /* in - dialog flags */,
733 bool /* out - success */, 731 bool /* out - success */,
734 std::wstring /* out - prompt field */) 732 std::wstring /* out - prompt field */)
735 733
736 // Sets the contents for the given page (URL and page ID are the first two 734 // Sets the contents for the given page (URL and page ID are the first two
737 // arguments) given the contents that is the 3rd. 735 // arguments) given the contents that is the 3rd.
738 IPC_MESSAGE_CONTROL3(ViewHostMsg_PageContents, GURL, int32, std::wstring) 736 IPC_MESSAGE_CONTROL3(ViewHostMsg_PageContents, GURL, int32, std::wstring)
739 737
740 // Specifies the URL as the first parameter (a wstring) and thumbnail as 738 // Specifies the URL as the first parameter (a wstring) and thumbnail as
741 // binary data as the second parameter. Our macros don't handle binary data, 739 // binary data as the second parameter.
742 // so this is declared "empty," to be encoded by the caller/receiver. 740 IPC_MESSAGE_ROUTED3(ViewHostMsg_Thumbnail,
743 IPC_MESSAGE_EMPTY(ViewHostMsg_Thumbnail) 741 GURL /* url */,
742 ThumbnailScore /* score */,
743 SkBitmap /* bitmap */)
744 744
745 // Notification that the url for the favicon of a site has been determined. 745 // Notification that the url for the favicon of a site has been determined.
746 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateFavIconURL, 746 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateFavIconURL,
747 int32 /* page_id */, 747 int32 /* page_id */,
748 GURL /* url of the favicon */) 748 GURL /* url of the favicon */)
749 749
750 // Used to tell the parent that the user right clicked on an area of the 750 // 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 751 // 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 752 // object contains information about the node(s) that were selected when the
753 // user right clicked. 753 // user right clicked.
(...skipping 348 matching lines...)
1102 1102
1103 // Get the list of proxies to use for |url|, as a semicolon delimited list 1103 // Get the list of proxies to use for |url|, as a semicolon delimited list
1104 // of "<TYPE> <HOST>:<PORT>" | "DIRECT". See also 1104 // of "<TYPE> <HOST>:<PORT>" | "DIRECT". See also
1105 // PluginProcessHostMsg_ResolveProxy which does the same thing. 1105 // PluginProcessHostMsg_ResolveProxy which does the same thing.
1106 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_ResolveProxy, 1106 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_ResolveProxy,
1107 GURL /* url */, 1107 GURL /* url */,
1108 int /* network error */, 1108 int /* network error */,
1109 std::string /* proxy list */) 1109 std::string /* proxy list */)
1110 1110
1111 IPC_END_MESSAGES(ViewHost) 1111 IPC_END_MESSAGES(ViewHost)
OLDNEW
« no previous file with comments | « chrome/common/render_messages.cc ('k') | chrome/common/resource_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine