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

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

Issue 10198040: New link rel=prerender api, using WebKit::WebPrerenderingPlatform (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: is this closer? Created 8 years, 7 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 // Multiply-included message file, no traditional include guard. 5 // Multiply-included message file, no traditional include guard.
6 #include "content/public/common/common_param_traits.h"
7 #include "content/public/common/referrer.h"
6 #include "googleurl/src/gurl.h" 8 #include "googleurl/src/gurl.h"
7 #include "ipc/ipc_message.h" 9 #include "ipc/ipc_message.h"
8 #include "ipc/ipc_message_macros.h" 10 #include "ipc/ipc_message_macros.h"
9 #include "ipc/ipc_param_traits.h" 11 #include "ipc/ipc_param_traits.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebReferrerP olicy.h"
13 #include "ui/gfx/size.h"
10 14
11 #define IPC_MESSAGE_START PrerenderMsgStart 15 #define IPC_MESSAGE_START PrerenderMsgStart
12 16
17 // Prerender Link Manager Messages
mmenke 2012/05/01 16:23:21 nit: PrerenderLinkManager
gavinp 2012/05/01 18:50:22 Done.
18 // These are messages sent from the renderer to the browser in
19 // relation to <link rel=prerender> elements.
20
21 // Notifies of the insertion of a <link rel=prerender> element in the
22 // document.
23 IPC_MESSAGE_CONTROL5(PrerenderHostMsg_AddPrerender,
24 int /* id, assigned by WebPrerendererClient */,
25 GURL /* url */,
26 content::Referrer,
27 gfx::Size,
28 int /* render_view_route_id of launcher */)
29
30 // Notifies on removal of a <link rel=prerender> element from the document.
31 IPC_MESSAGE_CONTROL1(PrerenderHostMsg_CancelPrerender,
32 int /* id, assigned by WebPrerendererClient */)
33
34 // Notifies on unloading a <link rel=prerender> element from a frame.
35 IPC_MESSAGE_CONTROL1(PrerenderHostMsg_AbandonPrerender,
36 int /* id, assigned by WebPrerendererClient */)
37
38 // Prerender View Host Messages
mmenke 2012/05/01 16:23:21 What is a Prerender View Host? Generally (Like ju
gavinp 2012/05/01 18:50:22 Good point. Renamed to PrerenderDispatcher Messag
39 // These are messages sent in relation to running prerenders.
40
13 // Tells a renderer if it's currently being prerendered. Must only be set 41 // 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 42 // to true before any navigation occurs, and only set to false at most once
15 // after that. 43 // after that.
16 IPC_MESSAGE_ROUTED1(PrerenderMsg_SetIsPrerendering, 44 IPC_MESSAGE_ROUTED1(PrerenderMsg_SetIsPrerendering,
17 bool /* whether the RenderView is prerendering */) 45 bool /* whether the RenderView is prerendering */)
18 46
19 // Specifies that a URL is currently being prerendered. 47 // Specifies that a URL is currently being prerendered.
20 IPC_MESSAGE_CONTROL1(PrerenderMsg_AddPrerenderURL, 48 IPC_MESSAGE_CONTROL1(PrerenderMsg_AddPrerenderURL,
21 GURL /* url */) 49 GURL /* url */)
22 50
23 // Specifies that a URL is no longer being prerendered. 51 // Specifies that a URL is no longer being prerendered.
24 IPC_MESSAGE_CONTROL1(PrerenderMsg_RemovePrerenderURL, 52 IPC_MESSAGE_CONTROL1(PrerenderMsg_RemovePrerenderURL,
25 GURL /* url */) 53 GURL /* url */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698