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 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include "chrome/common/prerender_types.h" | 9 #include "chrome/common/prerender_types.h" |
10 #include "content/public/common/referrer.h" | 10 #include "content/public/common/referrer.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 int /* render_view_route_id of launcher */) | 39 int /* render_view_route_id of launcher */) |
40 | 40 |
41 // Notifies on removal of a <link rel=prerender> element from the document. | 41 // Notifies on removal of a <link rel=prerender> element from the document. |
42 IPC_MESSAGE_CONTROL1(PrerenderHostMsg_CancelLinkRelPrerender, | 42 IPC_MESSAGE_CONTROL1(PrerenderHostMsg_CancelLinkRelPrerender, |
43 int /* prerender_id, assigned by WebPrerendererClient */) | 43 int /* prerender_id, assigned by WebPrerendererClient */) |
44 | 44 |
45 // Notifies on unloading a <link rel=prerender> element from a frame. | 45 // Notifies on unloading a <link rel=prerender> element from a frame. |
46 IPC_MESSAGE_CONTROL1(PrerenderHostMsg_AbandonLinkRelPrerender, | 46 IPC_MESSAGE_CONTROL1(PrerenderHostMsg_AbandonLinkRelPrerender, |
47 int /* prerender_id, assigned by WebPrerendererClient */) | 47 int /* prerender_id, assigned by WebPrerendererClient */) |
48 | 48 |
| 49 // Sent by the renderer process to notify that the resource prefetcher has |
| 50 // discovered all possible subresources and issued requests for them. |
| 51 IPC_MESSAGE_CONTROL0(PrerenderHostMsg_PrefetchFinished) |
| 52 |
49 // PrerenderDispatcher Messages | 53 // PrerenderDispatcher Messages |
50 // These are messages sent from the browser to the renderer in relation to | 54 // These are messages sent from the browser to the renderer in relation to |
51 // running prerenders. | 55 // running prerenders. |
52 | 56 |
53 // Tells a renderer if it's currently being prerendered. Must only be set | 57 // Tells a renderer if it's currently being prerendered. Must only be set |
54 // before any navigation occurs, and only set to NO_PRERENDER at most once after | 58 // before any navigation occurs, and only set to NO_PRERENDER at most once after |
55 // that. | 59 // that. |
56 IPC_MESSAGE_ROUTED1(PrerenderMsg_SetIsPrerendering, prerender::PrerenderMode) | 60 IPC_MESSAGE_ROUTED1(PrerenderMsg_SetIsPrerendering, prerender::PrerenderMode) |
57 | 61 |
58 // Signals to launcher that a prerender is running. | 62 // Signals to launcher that a prerender is running. |
(...skipping 12 matching lines...) Expand all Loading... |
71 IPC_MESSAGE_CONTROL1(PrerenderMsg_OnPrerenderAddAlias, | 75 IPC_MESSAGE_CONTROL1(PrerenderMsg_OnPrerenderAddAlias, |
72 GURL /* url */) | 76 GURL /* url */) |
73 | 77 |
74 // Signals to a launcher that a new alias has been added to a prerender. | 78 // Signals to a launcher that a new alias has been added to a prerender. |
75 IPC_MESSAGE_CONTROL1(PrerenderMsg_OnPrerenderRemoveAliases, | 79 IPC_MESSAGE_CONTROL1(PrerenderMsg_OnPrerenderRemoveAliases, |
76 std::vector<GURL> /* urls */) | 80 std::vector<GURL> /* urls */) |
77 | 81 |
78 // Signals to a launcher that a prerender is no longer running. | 82 // Signals to a launcher that a prerender is no longer running. |
79 IPC_MESSAGE_CONTROL1(PrerenderMsg_OnPrerenderStop, | 83 IPC_MESSAGE_CONTROL1(PrerenderMsg_OnPrerenderStop, |
80 int /* prerender_id */) | 84 int /* prerender_id */) |
OLD | NEW |