| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/renderer/render_frame_impl.h" | 5 #include "content/renderer/render_frame_impl.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 #include "content/renderer/render_view_impl.h" | 119 #include "content/renderer/render_view_impl.h" |
| 120 #include "content/renderer/render_widget_fullscreen_pepper.h" | 120 #include "content/renderer/render_widget_fullscreen_pepper.h" |
| 121 #include "content/renderer/renderer_webapplicationcachehost_impl.h" | 121 #include "content/renderer/renderer_webapplicationcachehost_impl.h" |
| 122 #include "content/renderer/renderer_webcolorchooser_impl.h" | 122 #include "content/renderer/renderer_webcolorchooser_impl.h" |
| 123 #include "content/renderer/savable_resources.h" | 123 #include "content/renderer/savable_resources.h" |
| 124 #include "content/renderer/screen_orientation/screen_orientation_dispatcher.h" | 124 #include "content/renderer/screen_orientation/screen_orientation_dispatcher.h" |
| 125 #include "content/renderer/shared_worker_repository.h" | 125 #include "content/renderer/shared_worker_repository.h" |
| 126 #include "content/renderer/skia_benchmarking_extension.h" | 126 #include "content/renderer/skia_benchmarking_extension.h" |
| 127 #include "content/renderer/stats_collection_controller.h" | 127 #include "content/renderer/stats_collection_controller.h" |
| 128 #include "content/renderer/usb/web_usb_client_impl.h" | 128 #include "content/renderer/usb/web_usb_client_impl.h" |
| 129 #include "content/renderer/wake_lock/wake_lock_dispatcher.h" | |
| 130 #include "content/renderer/web_frame_utils.h" | 129 #include "content/renderer/web_frame_utils.h" |
| 131 #include "content/renderer/web_ui_extension.h" | 130 #include "content/renderer/web_ui_extension.h" |
| 132 #include "content/renderer/websharedworker_proxy.h" | 131 #include "content/renderer/websharedworker_proxy.h" |
| 133 #include "crypto/sha2.h" | 132 #include "crypto/sha2.h" |
| 134 #include "gin/modules/module_registry.h" | 133 #include "gin/modules/module_registry.h" |
| 135 #include "media/audio/audio_output_device.h" | 134 #include "media/audio/audio_output_device.h" |
| 136 #include "media/base/audio_renderer_mixer_input.h" | 135 #include "media/base/audio_renderer_mixer_input.h" |
| 137 #include "media/base/cdm_factory.h" | 136 #include "media/base/cdm_factory.h" |
| 138 #include "media/base/decoder_factory.h" | 137 #include "media/base/decoder_factory.h" |
| 139 #include "media/base/media.h" | 138 #include "media/base/media.h" |
| (...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1010 media_session_manager_(NULL), | 1009 media_session_manager_(NULL), |
| 1011 #endif | 1010 #endif |
| 1012 media_surface_manager_(nullptr), | 1011 media_surface_manager_(nullptr), |
| 1013 #if defined(ENABLE_BROWSER_CDMS) | 1012 #if defined(ENABLE_BROWSER_CDMS) |
| 1014 cdm_manager_(NULL), | 1013 cdm_manager_(NULL), |
| 1015 #endif | 1014 #endif |
| 1016 #if defined(VIDEO_HOLE) | 1015 #if defined(VIDEO_HOLE) |
| 1017 contains_media_player_(false), | 1016 contains_media_player_(false), |
| 1018 #endif | 1017 #endif |
| 1019 devtools_agent_(nullptr), | 1018 devtools_agent_(nullptr), |
| 1020 wakelock_dispatcher_(nullptr), | |
| 1021 geolocation_dispatcher_(NULL), | 1019 geolocation_dispatcher_(NULL), |
| 1022 push_messaging_dispatcher_(NULL), | 1020 push_messaging_dispatcher_(NULL), |
| 1023 presentation_dispatcher_(NULL), | 1021 presentation_dispatcher_(NULL), |
| 1024 blink_service_registry_(service_registry_.GetWeakPtr()), | 1022 blink_service_registry_(service_registry_.GetWeakPtr()), |
| 1025 screen_orientation_dispatcher_(NULL), | 1023 screen_orientation_dispatcher_(NULL), |
| 1026 manifest_manager_(NULL), | 1024 manifest_manager_(NULL), |
| 1027 accessibility_mode_(AccessibilityModeOff), | 1025 accessibility_mode_(AccessibilityModeOff), |
| 1028 renderer_accessibility_(NULL), | 1026 renderer_accessibility_(NULL), |
| 1029 media_player_delegate_(NULL), | 1027 media_player_delegate_(NULL), |
| 1030 is_using_lofi_(false), | 1028 is_using_lofi_(false), |
| (...skipping 3018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4049 static_cast<storage::StorageType>(type), | 4047 static_cast<storage::StorageType>(type), |
| 4050 requested_size, | 4048 requested_size, |
| 4051 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); | 4049 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); |
| 4052 } | 4050 } |
| 4053 | 4051 |
| 4054 void RenderFrameImpl::willOpenWebSocket(blink::WebSocketHandle* handle) { | 4052 void RenderFrameImpl::willOpenWebSocket(blink::WebSocketHandle* handle) { |
| 4055 WebSocketBridge* impl = static_cast<WebSocketBridge*>(handle); | 4053 WebSocketBridge* impl = static_cast<WebSocketBridge*>(handle); |
| 4056 impl->set_render_frame_id(routing_id_); | 4054 impl->set_render_frame_id(routing_id_); |
| 4057 } | 4055 } |
| 4058 | 4056 |
| 4059 blink::WebWakeLockClient* RenderFrameImpl::wakeLockClient() { | |
| 4060 if (!wakelock_dispatcher_) | |
| 4061 wakelock_dispatcher_ = new WakeLockDispatcher(this); | |
| 4062 return wakelock_dispatcher_; | |
| 4063 } | |
| 4064 | |
| 4065 blink::WebGeolocationClient* RenderFrameImpl::geolocationClient() { | 4057 blink::WebGeolocationClient* RenderFrameImpl::geolocationClient() { |
| 4066 if (!geolocation_dispatcher_) | 4058 if (!geolocation_dispatcher_) |
| 4067 geolocation_dispatcher_ = new GeolocationDispatcher(this); | 4059 geolocation_dispatcher_ = new GeolocationDispatcher(this); |
| 4068 return geolocation_dispatcher_; | 4060 return geolocation_dispatcher_; |
| 4069 } | 4061 } |
| 4070 | 4062 |
| 4071 blink::WebPresentationClient* RenderFrameImpl::presentationClient() { | 4063 blink::WebPresentationClient* RenderFrameImpl::presentationClient() { |
| 4072 if (!presentation_dispatcher_) | 4064 if (!presentation_dispatcher_) |
| 4073 presentation_dispatcher_ = new PresentationDispatcher(this); | 4065 presentation_dispatcher_ = new PresentationDispatcher(this); |
| 4074 return presentation_dispatcher_; | 4066 return presentation_dispatcher_; |
| (...skipping 1962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6037 int match_count, | 6029 int match_count, |
| 6038 int ordinal, | 6030 int ordinal, |
| 6039 const WebRect& selection_rect, | 6031 const WebRect& selection_rect, |
| 6040 bool final_status_update) { | 6032 bool final_status_update) { |
| 6041 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, | 6033 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, |
| 6042 selection_rect, ordinal, | 6034 selection_rect, ordinal, |
| 6043 final_status_update)); | 6035 final_status_update)); |
| 6044 } | 6036 } |
| 6045 | 6037 |
| 6046 } // namespace content | 6038 } // namespace content |
| OLD | NEW |