| 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/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 #include "content/browser/message_port_message_filter.h" | 48 #include "content/browser/message_port_message_filter.h" |
| 49 #include "content/browser/plugin_content_origin_whitelist.h" | 49 #include "content/browser/plugin_content_origin_whitelist.h" |
| 50 #include "content/browser/power_save_blocker_impl.h" | 50 #include "content/browser/power_save_blocker_impl.h" |
| 51 #include "content/browser/renderer_host/render_process_host_impl.h" | 51 #include "content/browser/renderer_host/render_process_host_impl.h" |
| 52 #include "content/browser/renderer_host/render_view_host_delegate_view.h" | 52 #include "content/browser/renderer_host/render_view_host_delegate_view.h" |
| 53 #include "content/browser/renderer_host/render_view_host_impl.h" | 53 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 54 #include "content/browser/renderer_host/render_widget_host_impl.h" | 54 #include "content/browser/renderer_host/render_widget_host_impl.h" |
| 55 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 55 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
| 56 #include "content/browser/screen_orientation/screen_orientation_dispatcher_host_
impl.h" | 56 #include "content/browser/screen_orientation/screen_orientation_dispatcher_host_
impl.h" |
| 57 #include "content/browser/site_instance_impl.h" | 57 #include "content/browser/site_instance_impl.h" |
| 58 #include "content/browser/wake_lock/wake_lock_dispatcher_host.h" |
| 58 #include "content/browser/web_contents/web_contents_view_guest.h" | 59 #include "content/browser/web_contents/web_contents_view_guest.h" |
| 59 #include "content/browser/webui/generic_handler.h" | 60 #include "content/browser/webui/generic_handler.h" |
| 60 #include "content/browser/webui/web_ui_controller_factory_registry.h" | 61 #include "content/browser/webui/web_ui_controller_factory_registry.h" |
| 61 #include "content/browser/webui/web_ui_impl.h" | 62 #include "content/browser/webui/web_ui_impl.h" |
| 62 #include "content/common/browser_plugin/browser_plugin_constants.h" | 63 #include "content/common/browser_plugin/browser_plugin_constants.h" |
| 63 #include "content/common/browser_plugin/browser_plugin_messages.h" | 64 #include "content/common/browser_plugin/browser_plugin_messages.h" |
| 64 #include "content/common/frame_messages.h" | 65 #include "content/common/frame_messages.h" |
| 65 #include "content/common/input_messages.h" | 66 #include "content/common/input_messages.h" |
| 66 #include "content/common/ssl_status_serialization.h" | 67 #include "content/common/ssl_status_serialization.h" |
| 67 #include "content/common/view_messages.h" | 68 #include "content/common/view_messages.h" |
| (...skipping 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1361 | 1362 |
| 1362 registrar_.Add(this, | 1363 registrar_.Add(this, |
| 1363 NOTIFICATION_RENDER_WIDGET_HOST_DESTROYED, | 1364 NOTIFICATION_RENDER_WIDGET_HOST_DESTROYED, |
| 1364 NotificationService::AllBrowserContextsAndSources()); | 1365 NotificationService::AllBrowserContextsAndSources()); |
| 1365 | 1366 |
| 1366 screen_orientation_dispatcher_host_.reset( | 1367 screen_orientation_dispatcher_host_.reset( |
| 1367 new ScreenOrientationDispatcherHostImpl(this)); | 1368 new ScreenOrientationDispatcherHostImpl(this)); |
| 1368 | 1369 |
| 1369 manifest_manager_host_.reset(new ManifestManagerHost(this)); | 1370 manifest_manager_host_.reset(new ManifestManagerHost(this)); |
| 1370 | 1371 |
| 1372 wake_lock_dispatcher_host_.reset(new WakeLockDispatcherHost(this)); |
| 1373 |
| 1371 #if defined(OS_ANDROID) | 1374 #if defined(OS_ANDROID) |
| 1372 date_time_chooser_.reset(new DateTimeChooserAndroid()); | 1375 date_time_chooser_.reset(new DateTimeChooserAndroid()); |
| 1373 #endif | 1376 #endif |
| 1374 | 1377 |
| 1375 // BrowserPluginGuest::Init needs to be called after this WebContents has | 1378 // BrowserPluginGuest::Init needs to be called after this WebContents has |
| 1376 // a RenderWidgetHostViewGuest. That is, |view_->CreateView| above. | 1379 // a RenderWidgetHostViewGuest. That is, |view_->CreateView| above. |
| 1377 if (browser_plugin_guest_) | 1380 if (browser_plugin_guest_) |
| 1378 browser_plugin_guest_->Init(); | 1381 browser_plugin_guest_->Init(); |
| 1379 | 1382 |
| 1380 for (size_t i = 0; i < g_created_callbacks.Get().size(); i++) | 1383 for (size_t i = 0; i < g_created_callbacks.Get().size(); i++) |
| (...skipping 3149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4530 player_map->erase(it); | 4533 player_map->erase(it); |
| 4531 } | 4534 } |
| 4532 | 4535 |
| 4533 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { | 4536 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { |
| 4534 force_disable_overscroll_content_ = force_disable; | 4537 force_disable_overscroll_content_ = force_disable; |
| 4535 if (view_) | 4538 if (view_) |
| 4536 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); | 4539 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); |
| 4537 } | 4540 } |
| 4538 | 4541 |
| 4539 } // namespace content | 4542 } // namespace content |
| OLD | NEW |