| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 content::NotificationRegistrar& notification_registrar() { | 339 content::NotificationRegistrar& notification_registrar() { |
| 340 return notification_registrar_; | 340 return notification_registrar_; |
| 341 } | 341 } |
| 342 | 342 |
| 343 size_t pending_prerender_count() const; | 343 size_t pending_prerender_count() const; |
| 344 | 344 |
| 345 bool prerendering_has_been_cancelled() const { | 345 bool prerendering_has_been_cancelled() const { |
| 346 return prerendering_has_been_cancelled_; | 346 return prerendering_has_been_cancelled_; |
| 347 } | 347 } |
| 348 | 348 |
| 349 virtual content::WebContents* CreateWebContents( | 349 content::WebContents* CreateWebContents( |
| 350 content::SessionStorageNamespace* session_storage_namespace); | 350 content::SessionStorageNamespace* session_storage_namespace); |
| 351 | 351 |
| 352 bool prerendering_has_started_; | 352 bool prerendering_has_started_; |
| 353 | 353 |
| 354 // Time at which we started to load the URL. This is used to compute | 354 // Time at which we started to load the URL. This is used to compute |
| 355 // the time elapsed from initiating a prerender until the time the | 355 // the time elapsed from initiating a prerender until the time the |
| 356 // (potentially only partially) prerendered page is shown to the user. | 356 // (potentially only partially) prerendered page is shown to the user. |
| 357 base::TimeTicks load_start_time_; | 357 base::TimeTicks load_start_time_; |
| 358 | 358 |
| 359 // The prerendered WebContents; may be null. | 359 // The prerendered WebContents; may be null. |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 // Indicates what internal cookie events (see prerender_contents.cc) have | 466 // Indicates what internal cookie events (see prerender_contents.cc) have |
| 467 // occurred, using 1 bit for each possible InternalCookieEvent. | 467 // occurred, using 1 bit for each possible InternalCookieEvent. |
| 468 int cookie_status_; | 468 int cookie_status_; |
| 469 | 469 |
| 470 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); | 470 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); |
| 471 }; | 471 }; |
| 472 | 472 |
| 473 } // namespace prerender | 473 } // namespace prerender |
| 474 | 474 |
| 475 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ | 475 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ |
| OLD | NEW |