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

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

Issue 113803003: Add <link rel=next> support to prerender. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unstartable prerenders Created 7 years 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" 6 #include "content/public/common/common_param_traits.h"
7 #include "content/public/common/referrer.h" 7 #include "content/public/common/referrer.h"
8 #include "ipc/ipc_message.h" 8 #include "ipc/ipc_message.h"
9 #include "ipc/ipc_message_macros.h" 9 #include "ipc/ipc_message_macros.h"
10 #include "ipc/ipc_param_traits.h" 10 #include "ipc/ipc_param_traits.h"
11 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" 11 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
12 #include "ui/gfx/size.h" 12 #include "ui/gfx/size.h"
13 #include "url/gurl.h" 13 #include "url/gurl.h"
14 14
15 #define IPC_MESSAGE_START PrerenderMsgStart 15 #define IPC_MESSAGE_START PrerenderMsgStart
16 16
17 // PrerenderLinkManager Messages 17 // PrerenderLinkManager Messages
18 // These are messages sent from the renderer to the browser in 18 // These are messages sent from the renderer to the browser in
19 // relation to <link rel=prerender> elements. 19 // relation to <link rel=prerender> elements.
20 20
21 IPC_STRUCT_BEGIN(PrerenderAttributes)
22 IPC_STRUCT_MEMBER(GURL, url)
23 IPC_STRUCT_MEMBER(uint32, rel_types)
24 IPC_STRUCT_END()
25
21 // Notifies of the insertion of a <link rel=prerender> element in the 26 // Notifies of the insertion of a <link rel=prerender> element in the
22 // document. 27 // document.
23 IPC_MESSAGE_CONTROL5(PrerenderHostMsg_AddLinkRelPrerender, 28 IPC_MESSAGE_CONTROL5(PrerenderHostMsg_AddLinkRelPrerender,
24 int /* prerender_id, assigned by WebPrerendererClient */, 29 int /* prerender_id, assigned by WebPrerendererClient */,
25 GURL /* url */, 30 PrerenderAttributes,
26 content::Referrer, 31 content::Referrer,
27 gfx::Size, 32 gfx::Size,
28 int /* render_view_route_id of launcher */) 33 int /* render_view_route_id of launcher */)
29 34
30 // Notifies on removal of a <link rel=prerender> element from the document. 35 // Notifies on removal of a <link rel=prerender> element from the document.
31 IPC_MESSAGE_CONTROL1(PrerenderHostMsg_CancelLinkRelPrerender, 36 IPC_MESSAGE_CONTROL1(PrerenderHostMsg_CancelLinkRelPrerender,
32 int /* prerender_id, assigned by WebPrerendererClient */) 37 int /* prerender_id, assigned by WebPrerendererClient */)
33 38
34 // Notifies on unloading a <link rel=prerender> element from a frame. 39 // Notifies on unloading a <link rel=prerender> element from a frame.
35 IPC_MESSAGE_CONTROL1(PrerenderHostMsg_AbandonLinkRelPrerender, 40 IPC_MESSAGE_CONTROL1(PrerenderHostMsg_AbandonLinkRelPrerender,
(...skipping 21 matching lines...) Expand all
57 IPC_MESSAGE_CONTROL1(PrerenderMsg_OnPrerenderAddAlias, 62 IPC_MESSAGE_CONTROL1(PrerenderMsg_OnPrerenderAddAlias,
58 GURL /* url */) 63 GURL /* url */)
59 64
60 // Signals to a launcher that a new alias has been added to a prerender. 65 // Signals to a launcher that a new alias has been added to a prerender.
61 IPC_MESSAGE_CONTROL1(PrerenderMsg_OnPrerenderRemoveAliases, 66 IPC_MESSAGE_CONTROL1(PrerenderMsg_OnPrerenderRemoveAliases,
62 std::vector<GURL> /* urls */) 67 std::vector<GURL> /* urls */)
63 68
64 // Signals to a launcher that a prerender is no longer running. 69 // Signals to a launcher that a prerender is no longer running.
65 IPC_MESSAGE_CONTROL1(PrerenderMsg_OnPrerenderStop, 70 IPC_MESSAGE_CONTROL1(PrerenderMsg_OnPrerenderStop,
66 int /* prerender_id */) 71 int /* prerender_id */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698