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 #include "content/browser/web_contents/render_view_host_manager.h" | 5 #include "content/browser/web_contents/render_view_host_manager.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "content/public/browser/content_browser_client.h" | 21 #include "content/public/browser/content_browser_client.h" |
22 #include "content/public/browser/notification_service.h" | 22 #include "content/public/browser/notification_service.h" |
23 #include "content/public/browser/notification_types.h" | 23 #include "content/public/browser/notification_types.h" |
24 #include "content/public/browser/web_contents_view.h" | 24 #include "content/public/browser/web_contents_view.h" |
25 #include "content/public/browser/web_ui_controller.h" | 25 #include "content/public/browser/web_ui_controller.h" |
26 #include "content/public/browser/web_ui_controller_factory.h" | 26 #include "content/public/browser/web_ui_controller_factory.h" |
27 #include "content/public/common/content_switches.h" | 27 #include "content/public/common/content_switches.h" |
28 #include "content/public/common/url_constants.h" | 28 #include "content/public/common/url_constants.h" |
29 | 29 |
30 using content::NavigationController; | 30 using content::NavigationController; |
| 31 using content::NavigationControllerImpl; |
31 using content::NavigationEntry; | 32 using content::NavigationEntry; |
32 using content::NavigationEntryImpl; | 33 using content::NavigationEntryImpl; |
33 using content::RenderProcessHost; | 34 using content::RenderProcessHost; |
34 using content::RenderProcessHostImpl; | 35 using content::RenderProcessHostImpl; |
35 using content::RenderViewHost; | 36 using content::RenderViewHost; |
36 using content::RenderViewHostImpl; | 37 using content::RenderViewHostImpl; |
37 using content::RenderWidgetHostView; | 38 using content::RenderWidgetHostView; |
38 using content::RenderWidgetHostViewPort; | 39 using content::RenderWidgetHostViewPort; |
39 using content::SiteInstance; | 40 using content::SiteInstance; |
40 using content::WebUIControllerFactory; | 41 using content::WebUIControllerFactory; |
(...skipping 926 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
967 } | 968 } |
968 | 969 |
969 RenderViewHostImpl* RenderViewHostManager::GetSwappedOutRenderViewHost( | 970 RenderViewHostImpl* RenderViewHostManager::GetSwappedOutRenderViewHost( |
970 SiteInstance* instance) { | 971 SiteInstance* instance) { |
971 RenderViewHostMap::iterator iter = swapped_out_hosts_.find(instance->GetId()); | 972 RenderViewHostMap::iterator iter = swapped_out_hosts_.find(instance->GetId()); |
972 if (iter != swapped_out_hosts_.end()) | 973 if (iter != swapped_out_hosts_.end()) |
973 return iter->second; | 974 return iter->second; |
974 | 975 |
975 return NULL; | 976 return NULL; |
976 } | 977 } |
OLD | NEW |