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 "content/browser/tab_contents/tab_contents_observer.h" | 16 #include "content/browser/tab_contents/tab_contents_observer.h" |
17 #include "content/browser/renderer_host/render_view_host_delegate.h" | 17 #include "content/browser/renderer_host/render_view_host_delegate.h" |
18 #include "content/common/notification_registrar.h" | 18 #include "content/common/notification_registrar.h" |
19 #include "ui/gfx/rect.h" | |
20 | 19 |
21 class Profile; | 20 class Profile; |
22 class RenderViewHost; | 21 class RenderViewHost; |
23 class TabContents; | 22 class TabContents; |
24 class TabContentsWrapper; | 23 class TabContentsWrapper; |
25 struct FaviconURL; | 24 struct FaviconURL; |
26 struct ViewHostMsg_FrameNavigate_Params; | 25 struct ViewHostMsg_FrameNavigate_Params; |
27 | 26 |
28 namespace base { | 27 namespace base { |
29 class ProcessMetrics; | 28 class ProcessMetrics; |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 | 272 |
274 // Page ID at which prerendering started. | 273 // Page ID at which prerendering started. |
275 int32 starting_page_id_; | 274 int32 starting_page_id_; |
276 | 275 |
277 // Origin for this prerender. | 276 // Origin for this prerender. |
278 Origin origin_; | 277 Origin origin_; |
279 | 278 |
280 // Experiment during which this prerender is performed. | 279 // Experiment during which this prerender is performed. |
281 uint8 experiment_id_; | 280 uint8 experiment_id_; |
282 | 281 |
283 // Offset by which to offset prerendered pages. | 282 // Offset by which to offset prerendered pages |
284 static const int32 kPrerenderPageIdOffset = 10; | 283 static const int32 kPrerenderPageIdOffset = 10; |
285 | 284 |
286 // Bounds to use for the prerendered TabContents. | |
287 gfx::Rect tab_bounds_; | |
288 | |
289 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); | 285 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); |
290 }; | 286 }; |
291 | 287 |
292 } // namespace prerender | 288 } // namespace prerender |
293 | 289 |
294 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ | 290 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ |
OLD | NEW |