| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 #include "content/renderer/effective_connection_type_helper.h" | 91 #include "content/renderer/effective_connection_type_helper.h" |
| 92 #include "content/renderer/external_popup_menu.h" | 92 #include "content/renderer/external_popup_menu.h" |
| 93 #include "content/renderer/gpu/gpu_benchmarking_extension.h" | 93 #include "content/renderer/gpu/gpu_benchmarking_extension.h" |
| 94 #include "content/renderer/history_controller.h" | 94 #include "content/renderer/history_controller.h" |
| 95 #include "content/renderer/history_serialization.h" | 95 #include "content/renderer/history_serialization.h" |
| 96 #include "content/renderer/image_downloader/image_downloader_impl.h" | 96 #include "content/renderer/image_downloader/image_downloader_impl.h" |
| 97 #include "content/renderer/ime_event_guard.h" | 97 #include "content/renderer/ime_event_guard.h" |
| 98 #include "content/renderer/internal_document_state_data.h" | 98 #include "content/renderer/internal_document_state_data.h" |
| 99 #include "content/renderer/manifest/manifest_manager.h" | 99 #include "content/renderer/manifest/manifest_manager.h" |
| 100 #include "content/renderer/media/audio_device_factory.h" | 100 #include "content/renderer/media/audio_device_factory.h" |
| 101 #include "content/renderer/media/audio_message_filter.h" |
| 101 #include "content/renderer/media/media_permission_dispatcher.h" | 102 #include "content/renderer/media/media_permission_dispatcher.h" |
| 102 #include "content/renderer/media/media_stream_dispatcher.h" | 103 #include "content/renderer/media/media_stream_dispatcher.h" |
| 103 #include "content/renderer/media/media_stream_renderer_factory_impl.h" | 104 #include "content/renderer/media/media_stream_renderer_factory_impl.h" |
| 104 #include "content/renderer/media/midi_dispatcher.h" | 105 #include "content/renderer/media/midi_dispatcher.h" |
| 105 #include "content/renderer/media/render_media_log.h" | 106 #include "content/renderer/media/render_media_log.h" |
| 106 #include "content/renderer/media/renderer_webmediaplayer_delegate.h" | 107 #include "content/renderer/media/renderer_webmediaplayer_delegate.h" |
| 107 #include "content/renderer/media/user_media_client_impl.h" | 108 #include "content/renderer/media/user_media_client_impl.h" |
| 108 #include "content/renderer/media/web_media_element_source_utils.h" | 109 #include "content/renderer/media/web_media_element_source_utils.h" |
| 109 #include "content/renderer/media/webmediaplayer_ms.h" | 110 #include "content/renderer/media/webmediaplayer_ms.h" |
| 110 #include "content/renderer/mojo/service_registry_js_wrapper.h" | 111 #include "content/renderer/mojo/service_registry_js_wrapper.h" |
| (...skipping 5898 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6009 #endif | 6010 #endif |
| 6010 return decoder_factory_.get(); | 6011 return decoder_factory_.get(); |
| 6011 } | 6012 } |
| 6012 | 6013 |
| 6013 void RenderFrameImpl::RegisterMojoServices() { | 6014 void RenderFrameImpl::RegisterMojoServices() { |
| 6014 // Only main frame have ImageDownloader service. | 6015 // Only main frame have ImageDownloader service. |
| 6015 if (!frame_->parent()) { | 6016 if (!frame_->parent()) { |
| 6016 GetServiceRegistry()->AddService(base::Bind( | 6017 GetServiceRegistry()->AddService(base::Bind( |
| 6017 &ImageDownloaderImpl::CreateMojoService, base::Unretained(this))); | 6018 &ImageDownloaderImpl::CreateMojoService, base::Unretained(this))); |
| 6018 } | 6019 } |
| 6020 |
| 6021 AudioMessageFilter::Get()->set_audio_output_client( |
| 6022 routing_id_, new AudioOutputClient(GetServiceRegistry())); |
| 6019 } | 6023 } |
| 6020 | 6024 |
| 6021 template <typename Interface> | 6025 template <typename Interface> |
| 6022 void RenderFrameImpl::GetInterface(mojo::InterfaceRequest<Interface> request) { | 6026 void RenderFrameImpl::GetInterface(mojo::InterfaceRequest<Interface> request) { |
| 6023 GetServiceRegistry()->ConnectToRemoteService(std::move(request)); | 6027 GetServiceRegistry()->ConnectToRemoteService(std::move(request)); |
| 6024 } | 6028 } |
| 6025 | 6029 |
| 6026 shell::mojom::InterfaceProviderPtr RenderFrameImpl::ConnectToApplication( | 6030 shell::mojom::InterfaceProviderPtr RenderFrameImpl::ConnectToApplication( |
| 6027 const GURL& url) { | 6031 const GURL& url) { |
| 6028 if (!connector_) | 6032 if (!connector_) |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6136 // event target. Potentially a Pepper plugin will receive the event. | 6140 // event target. Potentially a Pepper plugin will receive the event. |
| 6137 // In order to tell whether a plugin gets the last mouse event and which it | 6141 // In order to tell whether a plugin gets the last mouse event and which it |
| 6138 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6142 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
| 6139 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6143 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
| 6140 // |pepper_last_mouse_event_target_|. | 6144 // |pepper_last_mouse_event_target_|. |
| 6141 pepper_last_mouse_event_target_ = nullptr; | 6145 pepper_last_mouse_event_target_ = nullptr; |
| 6142 #endif | 6146 #endif |
| 6143 } | 6147 } |
| 6144 | 6148 |
| 6145 } // namespace content | 6149 } // namespace content |
| OLD | NEW |