| 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/web_contents_impl.h" | 5 #include "content/browser/web_contents/web_contents_impl.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/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 #include "content/browser/message_port_message_filter.h" | 42 #include "content/browser/message_port_message_filter.h" |
| 43 #include "content/browser/message_port_service.h" | 43 #include "content/browser/message_port_service.h" |
| 44 #include "content/browser/power_save_blocker_impl.h" | 44 #include "content/browser/power_save_blocker_impl.h" |
| 45 #include "content/browser/renderer_host/render_process_host_impl.h" | 45 #include "content/browser/renderer_host/render_process_host_impl.h" |
| 46 #include "content/browser/renderer_host/render_view_host_delegate_view.h" | 46 #include "content/browser/renderer_host/render_view_host_delegate_view.h" |
| 47 #include "content/browser/renderer_host/render_view_host_impl.h" | 47 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 48 #include "content/browser/renderer_host/render_widget_host_impl.h" | 48 #include "content/browser/renderer_host/render_widget_host_impl.h" |
| 49 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 49 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
| 50 #include "content/browser/screen_orientation/screen_orientation_dispatcher_host.
h" | 50 #include "content/browser/screen_orientation/screen_orientation_dispatcher_host.
h" |
| 51 #include "content/browser/site_instance_impl.h" | 51 #include "content/browser/site_instance_impl.h" |
| 52 #include "content/browser/wake_lock/wake_lock_dispatcher_host.h" |
| 52 #include "content/browser/web_contents/web_contents_view_guest.h" | 53 #include "content/browser/web_contents/web_contents_view_guest.h" |
| 53 #include "content/browser/webui/generic_handler.h" | 54 #include "content/browser/webui/generic_handler.h" |
| 54 #include "content/browser/webui/web_ui_controller_factory_registry.h" | 55 #include "content/browser/webui/web_ui_controller_factory_registry.h" |
| 55 #include "content/browser/webui/web_ui_impl.h" | 56 #include "content/browser/webui/web_ui_impl.h" |
| 56 #include "content/common/browser_plugin/browser_plugin_constants.h" | 57 #include "content/common/browser_plugin/browser_plugin_constants.h" |
| 57 #include "content/common/browser_plugin/browser_plugin_messages.h" | 58 #include "content/common/browser_plugin/browser_plugin_messages.h" |
| 58 #include "content/common/frame_messages.h" | 59 #include "content/common/frame_messages.h" |
| 59 #include "content/common/image_messages.h" | 60 #include "content/common/image_messages.h" |
| 60 #include "content/common/input_messages.h" | 61 #include "content/common/input_messages.h" |
| 61 #include "content/common/ssl_status_serialization.h" | 62 #include "content/common/ssl_status_serialization.h" |
| (...skipping 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1179 registrar_.Add(this, | 1180 registrar_.Add(this, |
| 1180 NOTIFICATION_RENDER_WIDGET_HOST_DESTROYED, | 1181 NOTIFICATION_RENDER_WIDGET_HOST_DESTROYED, |
| 1181 NotificationService::AllBrowserContextsAndSources()); | 1182 NotificationService::AllBrowserContextsAndSources()); |
| 1182 | 1183 |
| 1183 geolocation_dispatcher_host_.reset(new GeolocationDispatcherHost(this)); | 1184 geolocation_dispatcher_host_.reset(new GeolocationDispatcherHost(this)); |
| 1184 midi_dispatcher_host_.reset(new MidiDispatcherHost(this)); | 1185 midi_dispatcher_host_.reset(new MidiDispatcherHost(this)); |
| 1185 | 1186 |
| 1186 screen_orientation_dispatcher_host_.reset( | 1187 screen_orientation_dispatcher_host_.reset( |
| 1187 new ScreenOrientationDispatcherHost(this)); | 1188 new ScreenOrientationDispatcherHost(this)); |
| 1188 | 1189 |
| 1190 wake_lock_dispatcher_host_.reset(new WakeLockDispatcherHost(this)); |
| 1191 |
| 1189 #if defined(OS_ANDROID) | 1192 #if defined(OS_ANDROID) |
| 1190 date_time_chooser_.reset(new DateTimeChooserAndroid()); | 1193 date_time_chooser_.reset(new DateTimeChooserAndroid()); |
| 1191 #endif | 1194 #endif |
| 1192 } | 1195 } |
| 1193 | 1196 |
| 1194 void WebContentsImpl::OnWebContentsDestroyed(WebContentsImpl* web_contents) { | 1197 void WebContentsImpl::OnWebContentsDestroyed(WebContentsImpl* web_contents) { |
| 1195 RemoveDestructionObserver(web_contents); | 1198 RemoveDestructionObserver(web_contents); |
| 1196 | 1199 |
| 1197 // Clear the opener if it has been closed. | 1200 // Clear the opener if it has been closed. |
| 1198 if (web_contents == opener_) { | 1201 if (web_contents == opener_) { |
| (...skipping 3039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4238 if (new_size != old_size) | 4241 if (new_size != old_size) |
| 4239 delegate_->UpdatePreferredSize(this, new_size); | 4242 delegate_->UpdatePreferredSize(this, new_size); |
| 4240 } | 4243 } |
| 4241 | 4244 |
| 4242 void WebContentsImpl::ResumeResponseDeferredAtStart() { | 4245 void WebContentsImpl::ResumeResponseDeferredAtStart() { |
| 4243 FrameTreeNode* node = frame_tree_.root(); | 4246 FrameTreeNode* node = frame_tree_.root(); |
| 4244 node->render_manager()->ResumeResponseDeferredAtStart(); | 4247 node->render_manager()->ResumeResponseDeferredAtStart(); |
| 4245 } | 4248 } |
| 4246 | 4249 |
| 4247 } // namespace content | 4250 } // namespace content |
| OLD | NEW |