Chromium Code Reviews| 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 // Multiply-included message file, no traditional include guard. | 5 // Multiply-included message file, no traditional include guard. |
| 6 #include "content/public/common/referrer.h" | |
| 6 #include "googleurl/src/gurl.h" | 7 #include "googleurl/src/gurl.h" |
| 7 #include "ipc/ipc_message.h" | 8 #include "ipc/ipc_message.h" |
| 8 #include "ipc/ipc_message_macros.h" | 9 #include "ipc/ipc_message_macros.h" |
| 9 #include "ipc/ipc_param_traits.h" | 10 #include "ipc/ipc_param_traits.h" |
| 11 #include "ui/gfx/size.h" | |
| 10 | 12 |
| 11 #define IPC_MESSAGE_START PrerenderMsgStart | 13 #define IPC_MESSAGE_START PrerenderMsgStart |
| 12 | 14 |
| 15 IPC_ENUM_TRAITS(WebKit::WebReferrerPolicy) | |
| 16 | |
| 17 IPC_STRUCT_TRAITS_BEGIN(content::Referrer) | |
| 18 IPC_STRUCT_TRAITS_MEMBER(url) | |
| 19 IPC_STRUCT_TRAITS_MEMBER(policy) | |
| 20 IPC_STRUCT_TRAITS_END() | |
| 21 | |
| 22 // Prerender Link Manager Messages | |
| 23 // These are messages sent from the renderer to the browser in | |
| 24 // relation to <link rel=prerender> elements. | |
| 25 | |
| 26 // Notifies of the insertion of a <link rel=prerender> element in the | |
| 27 // document. | |
| 28 IPC_MESSAGE_CONTROL5(PrerenderMsg_NewLinkPrerender, | |
|
cbentzel
2012/03/29 00:13:37
These should be named PrerenderHostMsg to differen
gavinp
2012/04/20 17:54:15
Done.
| |
| 29 int /* prerender_id, assigned in WebCore */, | |
| 30 int /* render_view_route_id of launcher */, | |
| 31 GURL /* href from the element */, | |
| 32 content::Referrer, | |
| 33 gfx::Size); | |
| 34 | |
| 35 // Notifies on removal of a <link rel=prerender> element from the document. | |
| 36 IPC_MESSAGE_CONTROL1(PrerenderMsg_RemovedLinkPrerender, | |
| 37 int /* id, assigned by the WebCore::PrerenderHandle */) | |
| 38 | |
| 39 // Notifies on unloading a <link rel=prerender> element from a frame. | |
| 40 IPC_MESSAGE_CONTROL1(PrerenderMsg_UnloadedLinkPrerender, | |
| 41 int /* id, assigned by the WebCore::PrerenderHandle */) | |
| 42 | |
| 43 // Prerender View Host Messages | |
| 44 // These are messages sent in relation to running prerenders. | |
| 45 | |
| 13 // Tells a renderer if it's currently being prerendered. Must only be set | 46 // Tells a renderer if it's currently being prerendered. Must only be set |
| 14 // to true before any navigation occurs, and only set to false at most once | 47 // to true before any navigation occurs, and only set to false at most once |
| 15 // after that. | 48 // after that. |
| 16 IPC_MESSAGE_ROUTED1(PrerenderMsg_SetIsPrerendering, | 49 IPC_MESSAGE_ROUTED1(PrerenderMsg_SetIsPrerendering, |
| 17 bool /* whether the RenderView is prerendering */) | 50 bool /* whether the RenderView is prerendering */) |
| 18 | 51 |
| 19 // Specifies that a URL is currently being prerendered. | 52 // Specifies that a URL is currently being prerendered. |
| 20 IPC_MESSAGE_CONTROL1(PrerenderMsg_AddPrerenderURL, | 53 IPC_MESSAGE_CONTROL1(PrerenderMsg_AddPrerenderURL, |
| 21 GURL /* url */) | 54 GURL /* url */) |
| 22 | 55 |
| 23 // Specifies that a URL is no longer being prerendered. | 56 // Specifies that a URL is no longer being prerendered. |
| 24 IPC_MESSAGE_CONTROL1(PrerenderMsg_RemovePrerenderURL, | 57 IPC_MESSAGE_CONTROL1(PrerenderMsg_RemovePrerenderURL, |
| 25 GURL /* url */) | 58 GURL /* url */) |
| OLD | NEW |