Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(419)

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 2461303002: WIP for Get Installed Related Apps (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 #include "content/renderer/devtools/devtools_agent.h" 96 #include "content/renderer/devtools/devtools_agent.h"
97 #include "content/renderer/dom_automation_controller.h" 97 #include "content/renderer/dom_automation_controller.h"
98 #include "content/renderer/effective_connection_type_helper.h" 98 #include "content/renderer/effective_connection_type_helper.h"
99 #include "content/renderer/external_popup_menu.h" 99 #include "content/renderer/external_popup_menu.h"
100 #include "content/renderer/gpu/gpu_benchmarking_extension.h" 100 #include "content/renderer/gpu/gpu_benchmarking_extension.h"
101 #include "content/renderer/history_controller.h" 101 #include "content/renderer/history_controller.h"
102 #include "content/renderer/history_serialization.h" 102 #include "content/renderer/history_serialization.h"
103 #include "content/renderer/image_downloader/image_downloader_impl.h" 103 #include "content/renderer/image_downloader/image_downloader_impl.h"
104 #include "content/renderer/ime_event_guard.h" 104 #include "content/renderer/ime_event_guard.h"
105 #include "content/renderer/input/input_handler_manager.h" 105 #include "content/renderer/input/input_handler_manager.h"
106 #include "content/renderer/installedapp/installed_app_dispatcher.h"
106 #include "content/renderer/internal_document_state_data.h" 107 #include "content/renderer/internal_document_state_data.h"
107 #include "content/renderer/manifest/manifest_manager.h" 108 #include "content/renderer/manifest/manifest_manager.h"
108 #include "content/renderer/media/audio_device_factory.h" 109 #include "content/renderer/media/audio_device_factory.h"
109 #include "content/renderer/media/media_permission_dispatcher.h" 110 #include "content/renderer/media/media_permission_dispatcher.h"
110 #include "content/renderer/media/media_stream_dispatcher.h" 111 #include "content/renderer/media/media_stream_dispatcher.h"
111 #include "content/renderer/media/media_stream_renderer_factory_impl.h" 112 #include "content/renderer/media/media_stream_renderer_factory_impl.h"
112 #include "content/renderer/media/render_media_log.h" 113 #include "content/renderer/media/render_media_log.h"
113 #include "content/renderer/media/renderer_webmediaplayer_delegate.h" 114 #include "content/renderer/media/renderer_webmediaplayer_delegate.h"
114 #include "content/renderer/media/user_media_client_impl.h" 115 #include "content/renderer/media/user_media_client_impl.h"
115 #include "content/renderer/media/web_media_element_source_utils.h" 116 #include "content/renderer/media/web_media_element_source_utils.h"
(...skipping 4340 matching lines...) Expand 10 before | Expand all | Expand 10 after
4456 presentation_dispatcher_ = new PresentationDispatcher(this); 4457 presentation_dispatcher_ = new PresentationDispatcher(this);
4457 return presentation_dispatcher_; 4458 return presentation_dispatcher_;
4458 } 4459 }
4459 4460
4460 blink::WebPushClient* RenderFrameImpl::pushClient() { 4461 blink::WebPushClient* RenderFrameImpl::pushClient() {
4461 if (!push_messaging_dispatcher_) 4462 if (!push_messaging_dispatcher_)
4462 push_messaging_dispatcher_ = new PushMessagingDispatcher(this); 4463 push_messaging_dispatcher_ = new PushMessagingDispatcher(this);
4463 return push_messaging_dispatcher_; 4464 return push_messaging_dispatcher_;
4464 } 4465 }
4465 4466
4467 blink::WebInstalledAppClient* RenderFrameImpl::installedAppClient() {
4468 if (!installed_app_client_) {
4469 installed_app_client_.reset(
4470 new InstalledAppDispatcher(this, GetServiceRegistry()));
4471 }
4472
4473 return installed_app_client_.get();
4474 }
4475
4466 void RenderFrameImpl::willStartUsingPeerConnectionHandler( 4476 void RenderFrameImpl::willStartUsingPeerConnectionHandler(
4467 blink::WebRTCPeerConnectionHandler* handler) { 4477 blink::WebRTCPeerConnectionHandler* handler) {
4468 #if defined(ENABLE_WEBRTC) 4478 #if defined(ENABLE_WEBRTC)
4469 static_cast<RTCPeerConnectionHandler*>(handler)->associateWithFrame(frame_); 4479 static_cast<RTCPeerConnectionHandler*>(handler)->associateWithFrame(frame_);
4470 #endif 4480 #endif
4471 } 4481 }
4472 4482
4473 blink::WebUserMediaClient* RenderFrameImpl::userMediaClient() { 4483 blink::WebUserMediaClient* RenderFrameImpl::userMediaClient() {
4474 if (!web_user_media_client_) 4484 if (!web_user_media_client_)
4475 InitializeUserMediaClient(); 4485 InitializeUserMediaClient();
(...skipping 2093 matching lines...) Expand 10 before | Expand all | Expand 10 after
6569 // event target. Potentially a Pepper plugin will receive the event. 6579 // event target. Potentially a Pepper plugin will receive the event.
6570 // In order to tell whether a plugin gets the last mouse event and which it 6580 // In order to tell whether a plugin gets the last mouse event and which it
6571 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6581 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6572 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6582 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6573 // |pepper_last_mouse_event_target_|. 6583 // |pepper_last_mouse_event_target_|.
6574 pepper_last_mouse_event_target_ = nullptr; 6584 pepper_last_mouse_event_target_ = nullptr;
6575 #endif 6585 #endif
6576 } 6586 }
6577 6587
6578 } // namespace content 6588 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | third_party/WebKit/LayoutTests/installedapp/api-defined.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698