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 17 matching lines...) Expand all Loading... |
28 #include "content/browser/dom_storage/session_storage_namespace_impl.h" | 28 #include "content/browser/dom_storage/session_storage_namespace_impl.h" |
29 #include "content/browser/download/download_stats.h" | 29 #include "content/browser/download/download_stats.h" |
30 #include "content/browser/download/mhtml_generation_manager.h" | 30 #include "content/browser/download/mhtml_generation_manager.h" |
31 #include "content/browser/download/save_package.h" | 31 #include "content/browser/download/save_package.h" |
32 #include "content/browser/frame_host/cross_process_frame_connector.h" | 32 #include "content/browser/frame_host/cross_process_frame_connector.h" |
33 #include "content/browser/frame_host/interstitial_page_impl.h" | 33 #include "content/browser/frame_host/interstitial_page_impl.h" |
34 #include "content/browser/frame_host/navigation_entry_impl.h" | 34 #include "content/browser/frame_host/navigation_entry_impl.h" |
35 #include "content/browser/frame_host/navigator_impl.h" | 35 #include "content/browser/frame_host/navigator_impl.h" |
36 #include "content/browser/frame_host/render_frame_host_impl.h" | 36 #include "content/browser/frame_host/render_frame_host_impl.h" |
37 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" | 37 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" |
38 #include "content/browser/geolocation/geolocation_dispatcher_host.h" | |
39 #include "content/browser/geolocation/geolocation_service_context.h" | 38 #include "content/browser/geolocation/geolocation_service_context.h" |
40 #include "content/browser/host_zoom_map_impl.h" | 39 #include "content/browser/host_zoom_map_impl.h" |
41 #include "content/browser/loader/resource_dispatcher_host_impl.h" | 40 #include "content/browser/loader/resource_dispatcher_host_impl.h" |
42 #include "content/browser/manifest/manifest_manager_host.h" | 41 #include "content/browser/manifest/manifest_manager_host.h" |
43 #include "content/browser/media/audio_stream_monitor.h" | 42 #include "content/browser/media/audio_stream_monitor.h" |
44 #include "content/browser/media/capture/web_contents_audio_muter.h" | 43 #include "content/browser/media/capture/web_contents_audio_muter.h" |
45 #include "content/browser/media/midi_dispatcher_host.h" | 44 #include "content/browser/media/midi_dispatcher_host.h" |
46 #include "content/browser/message_port_message_filter.h" | 45 #include "content/browser/message_port_message_filter.h" |
47 #include "content/browser/message_port_service.h" | 46 #include "content/browser/message_port_service.h" |
48 #include "content/browser/plugin_content_origin_whitelist.h" | 47 #include "content/browser/plugin_content_origin_whitelist.h" |
(...skipping 1133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1182 | 1181 |
1183 #if defined(ENABLE_PLUGINS) | 1182 #if defined(ENABLE_PLUGINS) |
1184 plugin_content_origin_whitelist_.reset( | 1183 plugin_content_origin_whitelist_.reset( |
1185 new PluginContentOriginWhitelist(this)); | 1184 new PluginContentOriginWhitelist(this)); |
1186 #endif | 1185 #endif |
1187 | 1186 |
1188 registrar_.Add(this, | 1187 registrar_.Add(this, |
1189 NOTIFICATION_RENDER_WIDGET_HOST_DESTROYED, | 1188 NOTIFICATION_RENDER_WIDGET_HOST_DESTROYED, |
1190 NotificationService::AllBrowserContextsAndSources()); | 1189 NotificationService::AllBrowserContextsAndSources()); |
1191 | 1190 |
1192 geolocation_dispatcher_host_.reset(new GeolocationDispatcherHost(this)); | |
1193 midi_dispatcher_host_.reset(new MidiDispatcherHost(this)); | 1191 midi_dispatcher_host_.reset(new MidiDispatcherHost(this)); |
1194 | 1192 |
1195 screen_orientation_dispatcher_host_.reset( | 1193 screen_orientation_dispatcher_host_.reset( |
1196 new ScreenOrientationDispatcherHostImpl(this)); | 1194 new ScreenOrientationDispatcherHostImpl(this)); |
1197 | 1195 |
1198 manifest_manager_host_.reset(new ManifestManagerHost(this)); | 1196 manifest_manager_host_.reset(new ManifestManagerHost(this)); |
1199 | 1197 |
1200 #if defined(OS_ANDROID) | 1198 #if defined(OS_ANDROID) |
1201 date_time_chooser_.reset(new DateTimeChooserAndroid()); | 1199 date_time_chooser_.reset(new DateTimeChooserAndroid()); |
1202 #endif | 1200 #endif |
(...skipping 3147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4350 node->render_manager()->ResumeResponseDeferredAtStart(); | 4348 node->render_manager()->ResumeResponseDeferredAtStart(); |
4351 } | 4349 } |
4352 | 4350 |
4353 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { | 4351 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { |
4354 force_disable_overscroll_content_ = force_disable; | 4352 force_disable_overscroll_content_ = force_disable; |
4355 if (view_) | 4353 if (view_) |
4356 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); | 4354 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); |
4357 } | 4355 } |
4358 | 4356 |
4359 } // namespace content | 4357 } // namespace content |
OLD | NEW |