| 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 #include "chrome/browser/prerender/prerender_manager.h" | 5 #include "chrome/browser/prerender/prerender_manager.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #include "chrome/browser/profiles/profile.h" | 32 #include "chrome/browser/profiles/profile.h" |
| 33 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" | 33 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" |
| 34 #include "chrome/browser/ui/tab_contents/core_tab_helper_delegate.h" | 34 #include "chrome/browser/ui/tab_contents/core_tab_helper_delegate.h" |
| 35 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 35 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
| 36 #include "chrome/common/chrome_notification_types.h" | 36 #include "chrome/common/chrome_notification_types.h" |
| 37 #include "chrome/common/chrome_switches.h" | 37 #include "chrome/common/chrome_switches.h" |
| 38 #include "chrome/common/render_messages.h" | 38 #include "chrome/common/render_messages.h" |
| 39 #include "content/browser/in_process_webkit/session_storage_namespace.h" | 39 #include "content/browser/in_process_webkit/session_storage_namespace.h" |
| 40 #include "content/browser/renderer_host/render_view_host.h" | 40 #include "content/browser/renderer_host/render_view_host.h" |
| 41 #include "content/browser/renderer_host/resource_dispatcher_host.h" | 41 #include "content/browser/renderer_host/resource_dispatcher_host.h" |
| 42 #include "content/browser/tab_contents/navigation_controller.h" | |
| 43 #include "content/browser/tab_contents/render_view_host_manager.h" | 42 #include "content/browser/tab_contents/render_view_host_manager.h" |
| 44 #include "content/public/browser/browser_thread.h" | 43 #include "content/public/browser/browser_thread.h" |
| 45 #include "content/public/browser/devtools_agent_host_registry.h" | 44 #include "content/public/browser/devtools_agent_host_registry.h" |
| 45 #include "content/public/browser/navigation_controller.h" |
| 46 #include "content/public/browser/notification_observer.h" | 46 #include "content/public/browser/notification_observer.h" |
| 47 #include "content/public/browser/notification_registrar.h" | 47 #include "content/public/browser/notification_registrar.h" |
| 48 #include "content/public/browser/notification_source.h" | 48 #include "content/public/browser/notification_source.h" |
| 49 #include "content/public/browser/render_process_host.h" | 49 #include "content/public/browser/render_process_host.h" |
| 50 #include "content/public/browser/web_contents.h" | 50 #include "content/public/browser/web_contents.h" |
| 51 #include "content/public/browser/web_contents_delegate.h" | 51 #include "content/public/browser/web_contents_delegate.h" |
| 52 | 52 |
| 53 using content::BrowserThread; | 53 using content::BrowserThread; |
| 54 using content::WebContents; | 54 using content::WebContents; |
| 55 | 55 |
| (...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1150 if (!render_process_host || !render_process_host->GetBrowserContext()) | 1150 if (!render_process_host || !render_process_host->GetBrowserContext()) |
| 1151 return NULL; | 1151 return NULL; |
| 1152 Profile* profile = Profile::FromBrowserContext( | 1152 Profile* profile = Profile::FromBrowserContext( |
| 1153 render_process_host->GetBrowserContext()); | 1153 render_process_host->GetBrowserContext()); |
| 1154 if (!profile) | 1154 if (!profile) |
| 1155 return NULL; | 1155 return NULL; |
| 1156 return PrerenderManagerFactory::GetInstance()->GetForProfile(profile); | 1156 return PrerenderManagerFactory::GetInstance()->GetForProfile(profile); |
| 1157 } | 1157 } |
| 1158 | 1158 |
| 1159 } // namespace prerender | 1159 } // namespace prerender |
| OLD | NEW |