| 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 16 matching lines...) Expand all Loading... |
| 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::NavigationControllerImpl; |
| 32 using content::NavigationEntry; | 32 using content::NavigationEntry; |
| 33 using content::NavigationEntryImpl; | 33 using content::NavigationEntryImpl; |
| 34 using content::RenderProcessHost; | 34 using content::RenderProcessHost; |
| 35 using content::RenderProcessHostImpl; | 35 using content::RenderProcessHostImpl; |
| 36 using content::RenderViewHost; | 36 using content::RenderViewHost; |
| 37 using content::RenderViewHostFactory; |
| 37 using content::RenderViewHostImpl; | 38 using content::RenderViewHostImpl; |
| 38 using content::RenderWidgetHostView; | 39 using content::RenderWidgetHostView; |
| 39 using content::RenderWidgetHostViewPort; | 40 using content::RenderWidgetHostViewPort; |
| 40 using content::SiteInstance; | 41 using content::SiteInstance; |
| 41 using content::WebUIControllerFactory; | 42 using content::WebUIControllerFactory; |
| 42 using content::WebUIImpl; | 43 using content::WebUIImpl; |
| 43 | 44 |
| 44 RenderViewHostManager::RenderViewHostManager( | 45 RenderViewHostManager::RenderViewHostManager( |
| 45 content::RenderViewHostDelegate* render_view_delegate, | 46 content::RenderViewHostDelegate* render_view_delegate, |
| 46 content::RenderWidgetHostDelegate* render_widget_delegate, | 47 content::RenderWidgetHostDelegate* render_widget_delegate, |
| (...skipping 922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 969 } | 970 } |
| 970 | 971 |
| 971 RenderViewHostImpl* RenderViewHostManager::GetSwappedOutRenderViewHost( | 972 RenderViewHostImpl* RenderViewHostManager::GetSwappedOutRenderViewHost( |
| 972 SiteInstance* instance) { | 973 SiteInstance* instance) { |
| 973 RenderViewHostMap::iterator iter = swapped_out_hosts_.find(instance->GetId()); | 974 RenderViewHostMap::iterator iter = swapped_out_hosts_.find(instance->GetId()); |
| 974 if (iter != swapped_out_hosts_.end()) | 975 if (iter != swapped_out_hosts_.end()) |
| 975 return iter->second; | 976 return iter->second; |
| 976 | 977 |
| 977 return NULL; | 978 return NULL; |
| 978 } | 979 } |
| OLD | NEW |