| 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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 // Needs to be able to call the constructor. | 268 // Needs to be able to call the constructor. |
| 269 friend class PrerenderContentsFactoryImpl; | 269 friend class PrerenderContentsFactoryImpl; |
| 270 | 270 |
| 271 friend class PrerenderRenderViewHostObserver; | 271 friend class PrerenderRenderViewHostObserver; |
| 272 | 272 |
| 273 // Message handlers. | 273 // Message handlers. |
| 274 void OnDidStartProvisionalLoadForFrame(int64 frame_id, | 274 void OnDidStartProvisionalLoadForFrame(int64 frame_id, |
| 275 bool main_frame, | 275 bool main_frame, |
| 276 const GURL& url); | 276 const GURL& url); |
| 277 void OnUpdateFaviconURL(int32 page_id, const std::vector<FaviconURL>& urls); | 277 void OnUpdateFaviconURL(int32 page_id, const std::vector<FaviconURL>& urls); |
| 278 void OnMaybeCancelPrerenderForHTML5Media(); | |
| 279 | 278 |
| 280 // Returns the RenderViewHost Delegate for this prerender. | 279 // Returns the RenderViewHost Delegate for this prerender. |
| 281 RenderViewHostDelegate* GetRenderViewHostDelegate(); | 280 RenderViewHostDelegate* GetRenderViewHostDelegate(); |
| 282 | 281 |
| 283 // Returns the ProcessMetrics for the render process, if it exists. | 282 // Returns the ProcessMetrics for the render process, if it exists. |
| 284 base::ProcessMetrics* MaybeGetProcessMetrics(); | 283 base::ProcessMetrics* MaybeGetProcessMetrics(); |
| 285 | 284 |
| 286 // The prerender manager owning this object. | 285 // The prerender manager owning this object. |
| 287 PrerenderManager* prerender_manager_; | 286 PrerenderManager* prerender_manager_; |
| 288 | 287 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 scoped_ptr<TabContentsWrapper> prerender_contents_; | 339 scoped_ptr<TabContentsWrapper> prerender_contents_; |
| 341 | 340 |
| 342 scoped_ptr<PrerenderRenderViewHostObserver> render_view_host_observer_; | 341 scoped_ptr<PrerenderRenderViewHostObserver> render_view_host_observer_; |
| 343 | 342 |
| 344 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); | 343 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); |
| 345 }; | 344 }; |
| 346 | 345 |
| 347 } // namespace prerender | 346 } // namespace prerender |
| 348 | 347 |
| 349 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ | 348 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ |
| OLD | NEW |