| 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 | 260 |
| 261 private: | 261 private: |
| 262 // Needs to be able to call the constructor. | 262 // Needs to be able to call the constructor. |
| 263 friend class PrerenderContentsFactoryImpl; | 263 friend class PrerenderContentsFactoryImpl; |
| 264 | 264 |
| 265 friend class PrerenderRenderViewHostObserver; | 265 friend class PrerenderRenderViewHostObserver; |
| 266 | 266 |
| 267 // Message handlers. | 267 // Message handlers. |
| 268 void OnDidStartProvisionalLoadForFrame(int64 frame_id, | 268 void OnDidStartProvisionalLoadForFrame(int64 frame_id, |
| 269 bool main_frame, | 269 bool main_frame, |
| 270 bool has_opener_set, |
| 270 const GURL& url); | 271 const GURL& url); |
| 271 void OnUpdateFaviconURL(int32 page_id, const std::vector<FaviconURL>& urls); | 272 void OnUpdateFaviconURL(int32 page_id, const std::vector<FaviconURL>& urls); |
| 272 void OnMaybeCancelPrerenderForHTML5Media(); | 273 void OnMaybeCancelPrerenderForHTML5Media(); |
| 273 | 274 |
| 274 // Returns the RenderViewHost Delegate for this prerender. | 275 // Returns the RenderViewHost Delegate for this prerender. |
| 275 RenderViewHostDelegate* GetRenderViewHostDelegate(); | 276 RenderViewHostDelegate* GetRenderViewHostDelegate(); |
| 276 | 277 |
| 277 // Returns the ProcessMetrics for the render process, if it exists. | 278 // Returns the ProcessMetrics for the render process, if it exists. |
| 278 base::ProcessMetrics* MaybeGetProcessMetrics(); | 279 base::ProcessMetrics* MaybeGetProcessMetrics(); |
| 279 | 280 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 scoped_ptr<TabContentsWrapper> prerender_contents_; | 335 scoped_ptr<TabContentsWrapper> prerender_contents_; |
| 335 | 336 |
| 336 scoped_ptr<PrerenderRenderViewHostObserver> render_view_host_observer_; | 337 scoped_ptr<PrerenderRenderViewHostObserver> render_view_host_observer_; |
| 337 | 338 |
| 338 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); | 339 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); |
| 339 }; | 340 }; |
| 340 | 341 |
| 341 } // namespace prerender | 342 } // namespace prerender |
| 342 | 343 |
| 343 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ | 344 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ |
| OLD | NEW |