| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <list> | 9 #include <list> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 content::RenderViewHost* new_render_view_host); | 231 content::RenderViewHost* new_render_view_host); |
| 232 | 232 |
| 233 content::NotificationRegistrar& notification_registrar() { | 233 content::NotificationRegistrar& notification_registrar() { |
| 234 return notification_registrar_; | 234 return notification_registrar_; |
| 235 } | 235 } |
| 236 | 236 |
| 237 const PendingPrerenderList* pending_prerender_list() const { | 237 const PendingPrerenderList* pending_prerender_list() const { |
| 238 return &pending_prerender_list_; | 238 return &pending_prerender_list_; |
| 239 } | 239 } |
| 240 | 240 |
| 241 bool prerendering_has_been_cancelled() const { |
| 242 return prerendering_has_been_cancelled_; |
| 243 } |
| 244 |
| 241 virtual content::WebContents* CreateWebContents( | 245 virtual content::WebContents* CreateWebContents( |
| 242 content::SessionStorageNamespace* session_storage_namespace); | 246 content::SessionStorageNamespace* session_storage_namespace); |
| 243 | 247 |
| 244 private: | 248 private: |
| 245 class TabContentsDelegateImpl; | 249 class TabContentsDelegateImpl; |
| 246 | 250 |
| 247 // Needs to be able to call the constructor. | 251 // Needs to be able to call the constructor. |
| 248 friend class PrerenderContentsFactoryImpl; | 252 friend class PrerenderContentsFactoryImpl; |
| 249 | 253 |
| 250 friend class PrerenderRenderViewHostObserver; | 254 friend class PrerenderRenderViewHostObserver; |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 | 344 |
| 341 // The process that created the child id. | 345 // The process that created the child id. |
| 342 int creator_child_id_; | 346 int creator_child_id_; |
| 343 | 347 |
| 344 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); | 348 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); |
| 345 }; | 349 }; |
| 346 | 350 |
| 347 } // namespace prerender | 351 } // namespace prerender |
| 348 | 352 |
| 349 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ | 353 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ |
| OLD | NEW |