OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ | 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ |
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ | 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 bool* did_suppress_message); | 119 bool* did_suppress_message); |
120 virtual void Close(RenderViewHost* render_view_host); | 120 virtual void Close(RenderViewHost* render_view_host); |
121 virtual void DidStopLoading(); | 121 virtual void DidStopLoading(); |
122 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; | 122 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; |
123 | 123 |
124 // RenderViewHostDelegate::View | 124 // RenderViewHostDelegate::View |
125 virtual void CreateNewWindow( | 125 virtual void CreateNewWindow( |
126 int route_id, | 126 int route_id, |
127 const ViewHostMsg_CreateWindow_Params& params); | 127 const ViewHostMsg_CreateWindow_Params& params); |
128 virtual void CreateNewWidget(int route_id, WebKit::WebPopupType popup_type); | 128 virtual void CreateNewWidget(int route_id, WebKit::WebPopupType popup_type); |
129 virtual void CreateNewFullscreenWidget( | 129 virtual void CreateNewFullscreenWidget(int route_id); |
130 int route_id, WebKit::WebPopupType popup_type); | |
131 virtual void ShowCreatedWindow(int route_id, | 130 virtual void ShowCreatedWindow(int route_id, |
132 WindowOpenDisposition disposition, | 131 WindowOpenDisposition disposition, |
133 const gfx::Rect& initial_pos, | 132 const gfx::Rect& initial_pos, |
134 bool user_gesture); | 133 bool user_gesture); |
135 virtual void ShowCreatedWidget(int route_id, | 134 virtual void ShowCreatedWidget(int route_id, |
136 const gfx::Rect& initial_pos); | 135 const gfx::Rect& initial_pos); |
137 virtual void ShowCreatedFullscreenWidget(int route_id); | 136 virtual void ShowCreatedFullscreenWidget(int route_id); |
138 virtual void ShowContextMenu(const ContextMenuParams& params) {} | 137 virtual void ShowContextMenu(const ContextMenuParams& params) {} |
139 virtual void ShowPopupMenu(const gfx::Rect& bounds, | 138 virtual void ShowPopupMenu(const gfx::Rect& bounds, |
140 int item_height, | 139 int item_height, |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 | 246 |
248 // Time at which we started to load the URL. This is used to compute | 247 // Time at which we started to load the URL. This is used to compute |
249 // the time elapsed from initiating a prerender until the time the | 248 // the time elapsed from initiating a prerender until the time the |
250 // (potentially only partially) prerendered page is shown to the user. | 249 // (potentially only partially) prerendered page is shown to the user. |
251 base::TimeTicks load_start_time_; | 250 base::TimeTicks load_start_time_; |
252 | 251 |
253 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); | 252 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); |
254 }; | 253 }; |
255 | 254 |
256 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ | 255 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ |
OLD | NEW |