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> |
11 | 11 |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/time.h" | 13 #include "base/time.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "chrome/browser/prerender/prerender_final_status.h" | 15 #include "chrome/browser/prerender/prerender_final_status.h" |
| 16 #include "chrome/browser/profiles/profile.h" |
16 #include "content/browser/tab_contents/tab_contents_observer.h" | 17 #include "content/browser/tab_contents/tab_contents_observer.h" |
17 #include "content/browser/renderer_host/render_view_host_delegate.h" | 18 #include "content/browser/renderer_host/render_view_host_delegate.h" |
18 #include "content/common/notification_registrar.h" | 19 #include "content/common/notification_registrar.h" |
19 | 20 |
20 class RenderViewHost; | 21 class RenderViewHost; |
21 class TabContents; | 22 class TabContents; |
22 class TabContentsWrapper; | 23 class TabContentsWrapper; |
23 struct FaviconURL; | 24 struct FaviconURL; |
24 struct ViewHostMsg_FrameNavigate_Params; | 25 struct ViewHostMsg_FrameNavigate_Params; |
25 | 26 |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 | 207 |
207 // The URL being prerendered. | 208 // The URL being prerendered. |
208 GURL prerender_url_; | 209 GURL prerender_url_; |
209 | 210 |
210 // The referrer. | 211 // The referrer. |
211 GURL referrer_; | 212 GURL referrer_; |
212 | 213 |
213 // The NavigationParameters of the finished navigation. | 214 // The NavigationParameters of the finished navigation. |
214 scoped_ptr<ViewHostMsg_FrameNavigate_Params> navigate_params_; | 215 scoped_ptr<ViewHostMsg_FrameNavigate_Params> navigate_params_; |
215 | 216 |
216 // The profile being used | 217 // The profile being used. |
217 Profile* profile_; | 218 Profile* profile_; |
218 | 219 |
219 // Information about the title and URL of the page that this class as a | 220 // Information about the title and URL of the page that this class as a |
220 // RenderViewHostDelegate has received from the RenderView. | 221 // RenderViewHostDelegate has received from the RenderView. |
221 // Used to apply to the new RenderViewHost delegate that might eventually | 222 // Used to apply to the new RenderViewHost delegate that might eventually |
222 // own the contained RenderViewHost when the prerendered page is shown | 223 // own the contained RenderViewHost when the prerendered page is shown |
223 // in a TabContents. | 224 // in a TabContents. |
224 string16 title_; | 225 string16 title_; |
225 int32 page_id_; | 226 int32 page_id_; |
226 GURL url_; | 227 GURL url_; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 | 276 |
276 // Offset by which to offset prerendered pages | 277 // Offset by which to offset prerendered pages |
277 static const int32 kPrerenderPageIdOffset = 10; | 278 static const int32 kPrerenderPageIdOffset = 10; |
278 | 279 |
279 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); | 280 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); |
280 }; | 281 }; |
281 | 282 |
282 } // namespace prerender | 283 } // namespace prerender |
283 | 284 |
284 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ | 285 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ |
OLD | NEW |