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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 #include "content/renderer/dom_automation_controller.h" | 100 #include "content/renderer/dom_automation_controller.h" |
101 #include "content/renderer/effective_connection_type_helper.h" | 101 #include "content/renderer/effective_connection_type_helper.h" |
102 #include "content/renderer/external_popup_menu.h" | 102 #include "content/renderer/external_popup_menu.h" |
103 #include "content/renderer/frame_owner_properties.h" | 103 #include "content/renderer/frame_owner_properties.h" |
104 #include "content/renderer/gpu/gpu_benchmarking_extension.h" | 104 #include "content/renderer/gpu/gpu_benchmarking_extension.h" |
105 #include "content/renderer/history_entry.h" | 105 #include "content/renderer/history_entry.h" |
106 #include "content/renderer/history_serialization.h" | 106 #include "content/renderer/history_serialization.h" |
107 #include "content/renderer/image_downloader/image_downloader_impl.h" | 107 #include "content/renderer/image_downloader/image_downloader_impl.h" |
108 #include "content/renderer/ime_event_guard.h" | 108 #include "content/renderer/ime_event_guard.h" |
109 #include "content/renderer/input/input_handler_manager.h" | 109 #include "content/renderer/input/input_handler_manager.h" |
| 110 #include "content/renderer/installedapp/related_apps_fetcher.h" |
110 #include "content/renderer/internal_document_state_data.h" | 111 #include "content/renderer/internal_document_state_data.h" |
111 #include "content/renderer/manifest/manifest_manager.h" | 112 #include "content/renderer/manifest/manifest_manager.h" |
112 #include "content/renderer/media/audio_device_factory.h" | 113 #include "content/renderer/media/audio_device_factory.h" |
113 #include "content/renderer/media/media_devices_listener_impl.h" | 114 #include "content/renderer/media/media_devices_listener_impl.h" |
114 #include "content/renderer/media/media_permission_dispatcher.h" | 115 #include "content/renderer/media/media_permission_dispatcher.h" |
115 #include "content/renderer/media/media_stream_dispatcher.h" | 116 #include "content/renderer/media/media_stream_dispatcher.h" |
116 #include "content/renderer/media/media_stream_renderer_factory_impl.h" | 117 #include "content/renderer/media/media_stream_renderer_factory_impl.h" |
117 #include "content/renderer/media/render_media_log.h" | 118 #include "content/renderer/media/render_media_log.h" |
118 #include "content/renderer/media/renderer_webmediaplayer_delegate.h" | 119 #include "content/renderer/media/renderer_webmediaplayer_delegate.h" |
119 #include "content/renderer/media/user_media_client_impl.h" | 120 #include "content/renderer/media/user_media_client_impl.h" |
(...skipping 4444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4564 presentation_dispatcher_ = new PresentationDispatcher(this); | 4565 presentation_dispatcher_ = new PresentationDispatcher(this); |
4565 return presentation_dispatcher_; | 4566 return presentation_dispatcher_; |
4566 } | 4567 } |
4567 | 4568 |
4568 blink::WebPushClient* RenderFrameImpl::pushClient() { | 4569 blink::WebPushClient* RenderFrameImpl::pushClient() { |
4569 if (!push_messaging_dispatcher_) | 4570 if (!push_messaging_dispatcher_) |
4570 push_messaging_dispatcher_ = new PushMessagingDispatcher(this); | 4571 push_messaging_dispatcher_ = new PushMessagingDispatcher(this); |
4571 return push_messaging_dispatcher_; | 4572 return push_messaging_dispatcher_; |
4572 } | 4573 } |
4573 | 4574 |
| 4575 blink::WebRelatedAppsFetcher* RenderFrameImpl::relatedAppsFetcher() { |
| 4576 if (!related_apps_fetcher_) |
| 4577 related_apps_fetcher_.reset(new RelatedAppsFetcher(manifest_manager_)); |
| 4578 |
| 4579 return related_apps_fetcher_.get(); |
| 4580 } |
| 4581 |
4574 void RenderFrameImpl::willStartUsingPeerConnectionHandler( | 4582 void RenderFrameImpl::willStartUsingPeerConnectionHandler( |
4575 blink::WebRTCPeerConnectionHandler* handler) { | 4583 blink::WebRTCPeerConnectionHandler* handler) { |
4576 #if BUILDFLAG(ENABLE_WEBRTC) | 4584 #if BUILDFLAG(ENABLE_WEBRTC) |
4577 static_cast<RTCPeerConnectionHandler*>(handler)->associateWithFrame(frame_); | 4585 static_cast<RTCPeerConnectionHandler*>(handler)->associateWithFrame(frame_); |
4578 #endif | 4586 #endif |
4579 } | 4587 } |
4580 | 4588 |
4581 blink::WebUserMediaClient* RenderFrameImpl::userMediaClient() { | 4589 blink::WebUserMediaClient* RenderFrameImpl::userMediaClient() { |
4582 if (!web_user_media_client_) | 4590 if (!web_user_media_client_) |
4583 InitializeUserMediaClient(); | 4591 InitializeUserMediaClient(); |
(...skipping 2249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6833 // event target. Potentially a Pepper plugin will receive the event. | 6841 // event target. Potentially a Pepper plugin will receive the event. |
6834 // In order to tell whether a plugin gets the last mouse event and which it | 6842 // In order to tell whether a plugin gets the last mouse event and which it |
6835 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6843 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
6836 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6844 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
6837 // |pepper_last_mouse_event_target_|. | 6845 // |pepper_last_mouse_event_target_|. |
6838 pepper_last_mouse_event_target_ = nullptr; | 6846 pepper_last_mouse_event_target_ = nullptr; |
6839 #endif | 6847 #endif |
6840 } | 6848 } |
6841 | 6849 |
6842 } // namespace content | 6850 } // namespace content |
OLD | NEW |