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" |
11 #include "content/browser/debugger/devtools_manager_impl.h" | 11 #include "content/browser/debugger/devtools_manager_impl.h" |
12 #include "content/browser/renderer_host/render_view_host_factory.h" | 12 #include "content/browser/renderer_host/render_view_host_factory.h" |
13 #include "content/browser/renderer_host/render_view_host_impl.h" | 13 #include "content/browser/renderer_host/render_view_host_impl.h" |
14 #include "content/browser/site_instance_impl.h" | 14 #include "content/browser/site_instance_impl.h" |
15 #include "content/browser/web_contents/navigation_controller_impl.h" | 15 #include "content/browser/web_contents/navigation_controller_impl.h" |
16 #include "content/browser/web_contents/navigation_entry_impl.h" | 16 #include "content/browser/web_contents/navigation_entry_impl.h" |
17 #include "content/browser/webui/web_ui_impl.h" | 17 #include "content/browser/webui/web_ui_impl.h" |
18 #include "content/common/view_messages.h" | 18 #include "content/common/view_messages.h" |
19 #include "content/port/browser/render_widget_host_view_port.h" | 19 #include "content/port/browser/render_widget_host_view_port.h" |
20 #include "content/public/browser/content_browser_client.h" | 20 #include "content/public/browser/content_browser_client.h" |
21 #include "content/public/browser/notification_service.h" | 21 #include "content/public/browser/notification_service.h" |
22 #include "content/public/browser/notification_types.h" | 22 #include "content/public/browser/notification_types.h" |
23 #include "content/public/browser/render_view_host_delegate.h" | |
24 #include "content/public/browser/web_contents_view.h" | 23 #include "content/public/browser/web_contents_view.h" |
25 #include "content/public/browser/web_ui_controller.h" | 24 #include "content/public/browser/web_ui_controller.h" |
26 #include "content/public/browser/web_ui_controller_factory.h" | 25 #include "content/public/browser/web_ui_controller_factory.h" |
27 #include "content/public/common/content_switches.h" | 26 #include "content/public/common/content_switches.h" |
28 #include "content/public/common/url_constants.h" | 27 #include "content/public/common/url_constants.h" |
29 | 28 |
30 using content::NavigationController; | 29 using content::NavigationController; |
31 using content::NavigationEntry; | 30 using content::NavigationEntry; |
32 using content::NavigationEntryImpl; | 31 using content::NavigationEntryImpl; |
33 using content::RenderViewHost; | 32 using content::RenderViewHost; |
(...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
897 } | 896 } |
898 | 897 |
899 RenderViewHost* RenderViewHostManager::GetSwappedOutRenderViewHost( | 898 RenderViewHost* RenderViewHostManager::GetSwappedOutRenderViewHost( |
900 SiteInstance* instance) { | 899 SiteInstance* instance) { |
901 RenderViewHostMap::iterator iter = swapped_out_hosts_.find(instance->GetId()); | 900 RenderViewHostMap::iterator iter = swapped_out_hosts_.find(instance->GetId()); |
902 if (iter != swapped_out_hosts_.end()) | 901 if (iter != swapped_out_hosts_.end()) |
903 return iter->second; | 902 return iter->second; |
904 | 903 |
905 return NULL; | 904 return NULL; |
906 } | 905 } |
OLD | NEW |