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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 | 261 |
262 private: | 262 private: |
263 // Needs to be able to call the constructor. | 263 // Needs to be able to call the constructor. |
264 friend class PrerenderContentsFactoryImpl; | 264 friend class PrerenderContentsFactoryImpl; |
265 | 265 |
266 friend class PrerenderRenderViewHostObserver; | 266 friend class PrerenderRenderViewHostObserver; |
267 | 267 |
268 // Message handlers. | 268 // Message handlers. |
269 void OnDidStartProvisionalLoadForFrame(int64 frame_id, | 269 void OnDidStartProvisionalLoadForFrame(int64 frame_id, |
270 bool main_frame, | 270 bool main_frame, |
| 271 bool has_opener_set, |
271 const GURL& url); | 272 const GURL& url); |
272 void OnUpdateFaviconURL(int32 page_id, const std::vector<FaviconURL>& urls); | 273 void OnUpdateFaviconURL(int32 page_id, const std::vector<FaviconURL>& urls); |
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 |
280 // The prerender manager owning this object. | 281 // The prerender manager owning this object. |
(...skipping 53 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 |