| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 FINAL_STATUS_USED, | 43 FINAL_STATUS_USED, |
| 44 FINAL_STATUS_TIMED_OUT, | 44 FINAL_STATUS_TIMED_OUT, |
| 45 FINAL_STATUS_EVICTED, | 45 FINAL_STATUS_EVICTED, |
| 46 FINAL_STATUS_MANAGER_SHUTDOWN, | 46 FINAL_STATUS_MANAGER_SHUTDOWN, |
| 47 FINAL_STATUS_CLOSED, | 47 FINAL_STATUS_CLOSED, |
| 48 FINAL_STATUS_CREATE_NEW_WINDOW, | 48 FINAL_STATUS_CREATE_NEW_WINDOW, |
| 49 FINAL_STATUS_PROFILE_DESTROYED, | 49 FINAL_STATUS_PROFILE_DESTROYED, |
| 50 FINAL_STATUS_APP_TERMINATING, | 50 FINAL_STATUS_APP_TERMINATING, |
| 51 FINAL_STATUS_JAVASCRIPT_ALERT, | 51 FINAL_STATUS_JAVASCRIPT_ALERT, |
| 52 FINAL_STATUS_AUTH_NEEDED, | 52 FINAL_STATUS_AUTH_NEEDED, |
| 53 FINAL_STATUS_DOWNLOAD, |
| 53 FINAL_STATUS_MAX, | 54 FINAL_STATUS_MAX, |
| 54 }; | 55 }; |
| 55 | 56 |
| 56 // PrerenderContents::Create uses the currently registered Factory to create | 57 // PrerenderContents::Create uses the currently registered Factory to create |
| 57 // the PrerenderContents. Factory is intended for testing. | 58 // the PrerenderContents. Factory is intended for testing. |
| 58 class Factory { | 59 class Factory { |
| 59 public: | 60 public: |
| 60 Factory() {} | 61 Factory() {} |
| 61 virtual ~Factory() {} | 62 virtual ~Factory() {} |
| 62 | 63 |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 | 248 |
| 248 // Time at which we started to load the URL. This is used to compute | 249 // Time at which we started to load the URL. This is used to compute |
| 249 // the time elapsed from initiating a prerender until the time the | 250 // the time elapsed from initiating a prerender until the time the |
| 250 // (potentially only partially) prerendered page is shown to the user. | 251 // (potentially only partially) prerendered page is shown to the user. |
| 251 base::TimeTicks load_start_time_; | 252 base::TimeTicks load_start_time_; |
| 252 | 253 |
| 253 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); | 254 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); |
| 254 }; | 255 }; |
| 255 | 256 |
| 256 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ | 257 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ |
| OLD | NEW |