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