| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 // Message handlers. | 182 // Message handlers. |
| 183 void OnDidStartProvisionalLoadForFrame(int64 frame_id, | 183 void OnDidStartProvisionalLoadForFrame(int64 frame_id, |
| 184 bool main_frame, | 184 bool main_frame, |
| 185 const GURL& url); | 185 const GURL& url); |
| 186 void OnDidRedirectProvisionalLoad(int32 page_id, | 186 void OnDidRedirectProvisionalLoad(int32 page_id, |
| 187 const GURL& source_url, | 187 const GURL& source_url, |
| 188 const GURL& target_url); | 188 const GURL& target_url); |
| 189 | 189 |
| 190 void OnUpdateFavIconURL(int32 page_id, const GURL& icon_url); | 190 void OnUpdateFavIconURL(int32 page_id, const GURL& icon_url); |
| 191 | 191 |
| 192 void AddAliasURL(const GURL& url); | 192 // Adds an alias URL, for one of the many redirections. Returns whether |
| 193 // the URL is valid. |
| 194 bool AddAliasURL(const GURL& url); |
| 193 | 195 |
| 194 // Remove |this| from the PrerenderManager, set a final status, and | 196 // Remove |this| from the PrerenderManager, set a final status, and |
| 195 // delete |this|. | 197 // delete |this|. |
| 196 void Destroy(FinalStatus reason); | 198 void Destroy(FinalStatus reason); |
| 197 | 199 |
| 198 // The prerender manager owning this object. | 200 // The prerender manager owning this object. |
| 199 PrerenderManager* prerender_manager_; | 201 PrerenderManager* prerender_manager_; |
| 200 | 202 |
| 201 // The host for our HTML content. | 203 // The host for our HTML content. |
| 202 RenderViewHost* render_view_host_; | 204 RenderViewHost* render_view_host_; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 // the time elapsed from initiating a prerender until the time the | 242 // the time elapsed from initiating a prerender until the time the |
| 241 // (potentially only partially) prerendered page is shown to the user. | 243 // (potentially only partially) prerendered page is shown to the user. |
| 242 base::TimeTicks load_start_time_; | 244 base::TimeTicks load_start_time_; |
| 243 | 245 |
| 244 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); | 246 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); |
| 245 }; | 247 }; |
| 246 | 248 |
| 247 } // prerender | 249 } // prerender |
| 248 | 250 |
| 249 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ | 251 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ |
| OLD | NEW |