| 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 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1011 media_session_manager_(NULL), | 1010 media_session_manager_(NULL), |
| 1012 #endif | 1011 #endif |
| 1013 media_surface_manager_(nullptr), | 1012 media_surface_manager_(nullptr), |
| 1014 #if defined(ENABLE_BROWSER_CDMS) | 1013 #if defined(ENABLE_BROWSER_CDMS) |
| 1015 cdm_manager_(NULL), | 1014 cdm_manager_(NULL), |
| 1016 #endif | 1015 #endif |
| 1017 #if defined(VIDEO_HOLE) | 1016 #if defined(VIDEO_HOLE) |
| 1018 contains_media_player_(false), | 1017 contains_media_player_(false), |
| 1019 #endif | 1018 #endif |
| 1020 devtools_agent_(nullptr), | 1019 devtools_agent_(nullptr), |
| 1021 wakelock_dispatcher_(nullptr), | |
| 1022 geolocation_dispatcher_(NULL), | 1020 geolocation_dispatcher_(NULL), |
| 1023 push_messaging_dispatcher_(NULL), | 1021 push_messaging_dispatcher_(NULL), |
| 1024 presentation_dispatcher_(NULL), | 1022 presentation_dispatcher_(NULL), |
| 1025 blink_service_registry_(service_registry_.GetWeakPtr()), | 1023 blink_service_registry_(service_registry_.GetWeakPtr()), |
| 1026 screen_orientation_dispatcher_(NULL), | 1024 screen_orientation_dispatcher_(NULL), |
| 1027 manifest_manager_(NULL), | 1025 manifest_manager_(NULL), |
| 1028 accessibility_mode_(AccessibilityModeOff), | 1026 accessibility_mode_(AccessibilityModeOff), |
| 1029 renderer_accessibility_(NULL), | 1027 renderer_accessibility_(NULL), |
| 1030 media_player_delegate_(NULL), | 1028 media_player_delegate_(NULL), |
| 1031 is_using_lofi_(false), | 1029 is_using_lofi_(false), |
| (...skipping 3018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4050 static_cast<storage::StorageType>(type), | 4048 static_cast<storage::StorageType>(type), |
| 4051 requested_size, | 4049 requested_size, |
| 4052 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); | 4050 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); |
| 4053 } | 4051 } |
| 4054 | 4052 |
| 4055 void RenderFrameImpl::willOpenWebSocket(blink::WebSocketHandle* handle) { | 4053 void RenderFrameImpl::willOpenWebSocket(blink::WebSocketHandle* handle) { |
| 4056 WebSocketBridge* impl = static_cast<WebSocketBridge*>(handle); | 4054 WebSocketBridge* impl = static_cast<WebSocketBridge*>(handle); |
| 4057 impl->set_render_frame_id(routing_id_); | 4055 impl->set_render_frame_id(routing_id_); |
| 4058 } | 4056 } |
| 4059 | 4057 |
| 4060 blink::WebWakeLockClient* RenderFrameImpl::wakeLockClient() { | |
| 4061 if (!wakelock_dispatcher_) | |
| 4062 wakelock_dispatcher_ = new WakeLockDispatcher(this); | |
| 4063 return wakelock_dispatcher_; | |
| 4064 } | |
| 4065 | |
| 4066 blink::WebGeolocationClient* RenderFrameImpl::geolocationClient() { | 4058 blink::WebGeolocationClient* RenderFrameImpl::geolocationClient() { |
| 4067 if (!geolocation_dispatcher_) | 4059 if (!geolocation_dispatcher_) |
| 4068 geolocation_dispatcher_ = new GeolocationDispatcher(this); | 4060 geolocation_dispatcher_ = new GeolocationDispatcher(this); |
| 4069 return geolocation_dispatcher_; | 4061 return geolocation_dispatcher_; |
| 4070 } | 4062 } |
| 4071 | 4063 |
| 4072 blink::WebPresentationClient* RenderFrameImpl::presentationClient() { | 4064 blink::WebPresentationClient* RenderFrameImpl::presentationClient() { |
| 4073 if (!presentation_dispatcher_) | 4065 if (!presentation_dispatcher_) |
| 4074 presentation_dispatcher_ = new PresentationDispatcher(this); | 4066 presentation_dispatcher_ = new PresentationDispatcher(this); |
| 4075 return presentation_dispatcher_; | 4067 return presentation_dispatcher_; |
| (...skipping 1972 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6048 int match_count, | 6040 int match_count, |
| 6049 int ordinal, | 6041 int ordinal, |
| 6050 const WebRect& selection_rect, | 6042 const WebRect& selection_rect, |
| 6051 bool final_status_update) { | 6043 bool final_status_update) { |
| 6052 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, | 6044 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, |
| 6053 selection_rect, ordinal, | 6045 selection_rect, ordinal, |
| 6054 final_status_update)); | 6046 final_status_update)); |
| 6055 } | 6047 } |
| 6056 | 6048 |
| 6057 } // namespace content | 6049 } // namespace content |
| OLD | NEW |