| 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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 NotificationRegistrar notification_registrar_; | 316 NotificationRegistrar notification_registrar_; |
| 317 TabContentsObserver::Registrar tab_contents_observer_registrar_; | 317 TabContentsObserver::Registrar tab_contents_observer_registrar_; |
| 318 | 318 |
| 319 // A vector of URLs that this prerendered page matches against. | 319 // A vector of URLs that this prerendered page matches against. |
| 320 // This array can contain more than element as a result of redirects, | 320 // This array can contain more than element as a result of redirects, |
| 321 // such as HTTP redirects or javascript redirects. | 321 // such as HTTP redirects or javascript redirects. |
| 322 std::vector<GURL> alias_urls_; | 322 std::vector<GURL> alias_urls_; |
| 323 | 323 |
| 324 bool has_stopped_loading_; | 324 bool has_stopped_loading_; |
| 325 | 325 |
| 326 // This must be the same value as the PrerenderTracker has recorded for |
| 327 // |this|, when |this| has a RenderView. |
| 326 FinalStatus final_status_; | 328 FinalStatus final_status_; |
| 327 | 329 |
| 328 bool prerendering_has_started_; | 330 bool prerendering_has_started_; |
| 329 | 331 |
| 330 // Time at which we started to load the URL. This is used to compute | 332 // Time at which we started to load the URL. This is used to compute |
| 331 // the time elapsed from initiating a prerender until the time the | 333 // the time elapsed from initiating a prerender until the time the |
| 332 // (potentially only partially) prerendered page is shown to the user. | 334 // (potentially only partially) prerendered page is shown to the user. |
| 333 base::TimeTicks load_start_time_; | 335 base::TimeTicks load_start_time_; |
| 334 | 336 |
| 335 // Process Metrics of the render process associated with the | 337 // Process Metrics of the render process associated with the |
| 336 // RenderViewHost for this object. | 338 // RenderViewHost for this object. |
| 337 scoped_ptr<base::ProcessMetrics> process_metrics_; | 339 scoped_ptr<base::ProcessMetrics> process_metrics_; |
| 338 | 340 |
| 339 // The prerendered TabContents; may be null. | 341 // The prerendered TabContents; may be null. |
| 340 scoped_ptr<TabContentsWrapper> prerender_contents_; | 342 scoped_ptr<TabContentsWrapper> prerender_contents_; |
| 341 | 343 |
| 342 scoped_ptr<PrerenderRenderViewHostObserver> render_view_host_observer_; | 344 scoped_ptr<PrerenderRenderViewHostObserver> render_view_host_observer_; |
| 343 | 345 |
| 344 scoped_ptr<TabContentsDelegateImpl> tab_contents_delegate_; | 346 scoped_ptr<TabContentsDelegateImpl> tab_contents_delegate_; |
| 345 | 347 |
| 348 // These are -1 before a RenderView is created. |
| 349 int child_id_; |
| 350 int route_id_; |
| 351 |
| 346 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); | 352 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); |
| 347 }; | 353 }; |
| 348 | 354 |
| 349 } // namespace prerender | 355 } // namespace prerender |
| 350 | 356 |
| 351 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ | 357 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ |
| OLD | NEW |