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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 class TabContentsDelegateImpl; | 274 class TabContentsDelegateImpl; |
275 | 275 |
276 // Needs to be able to call the constructor. | 276 // Needs to be able to call the constructor. |
277 friend class PrerenderContentsFactoryImpl; | 277 friend class PrerenderContentsFactoryImpl; |
278 | 278 |
279 friend class PrerenderRenderViewHostObserver; | 279 friend class PrerenderRenderViewHostObserver; |
280 | 280 |
281 // Message handlers. | 281 // Message handlers. |
282 void OnDidStartProvisionalLoadForFrame(int64 frame_id, | 282 void OnDidStartProvisionalLoadForFrame(int64 frame_id, |
283 bool main_frame, | 283 bool main_frame, |
| 284 bool has_opener_set, |
284 const GURL& url); | 285 const GURL& url); |
285 void OnUpdateFaviconURL(int32 page_id, const std::vector<FaviconURL>& urls); | 286 void OnUpdateFaviconURL(int32 page_id, const std::vector<FaviconURL>& urls); |
286 | 287 |
287 // Returns the RenderViewHost Delegate for this prerender. | 288 // Returns the RenderViewHost Delegate for this prerender. |
288 RenderViewHostDelegate* GetRenderViewHostDelegate(); | 289 RenderViewHostDelegate* GetRenderViewHostDelegate(); |
289 | 290 |
290 // Returns the ProcessMetrics for the render process, if it exists. | 291 // Returns the ProcessMetrics for the render process, if it exists. |
291 base::ProcessMetrics* MaybeGetProcessMetrics(); | 292 base::ProcessMetrics* MaybeGetProcessMetrics(); |
292 | 293 |
293 // The prerender manager owning this object. | 294 // The prerender manager owning this object. |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 // These are -1 before a RenderView is created. | 356 // These are -1 before a RenderView is created. |
356 int child_id_; | 357 int child_id_; |
357 int route_id_; | 358 int route_id_; |
358 | 359 |
359 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); | 360 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); |
360 }; | 361 }; |
361 | 362 |
362 } // namespace prerender | 363 } // namespace prerender |
363 | 364 |
364 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ | 365 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ |
OLD | NEW |