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

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

Issue 1756793004: Chrome-side patch for IsAppInstalled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@splitpatch2
Patch Set: Created 4 years, 9 months 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 #include "content/renderer/context_menu_params_builder.h" 84 #include "content/renderer/context_menu_params_builder.h"
85 #include "content/renderer/devtools/devtools_agent.h" 85 #include "content/renderer/devtools/devtools_agent.h"
86 #include "content/renderer/dom_automation_controller.h" 86 #include "content/renderer/dom_automation_controller.h"
87 #include "content/renderer/external_popup_menu.h" 87 #include "content/renderer/external_popup_menu.h"
88 #include "content/renderer/geolocation_dispatcher.h" 88 #include "content/renderer/geolocation_dispatcher.h"
89 #include "content/renderer/gpu/gpu_benchmarking_extension.h" 89 #include "content/renderer/gpu/gpu_benchmarking_extension.h"
90 #include "content/renderer/history_controller.h" 90 #include "content/renderer/history_controller.h"
91 #include "content/renderer/history_serialization.h" 91 #include "content/renderer/history_serialization.h"
92 #include "content/renderer/image_downloader/image_downloader_impl.h" 92 #include "content/renderer/image_downloader/image_downloader_impl.h"
93 #include "content/renderer/ime_event_guard.h" 93 #include "content/renderer/ime_event_guard.h"
94 #include "content/renderer/installedapp/installed_app_dispatcher.h"
94 #include "content/renderer/internal_document_state_data.h" 95 #include "content/renderer/internal_document_state_data.h"
95 #include "content/renderer/manifest/manifest_manager.h" 96 #include "content/renderer/manifest/manifest_manager.h"
96 #include "content/renderer/media/audio_device_factory.h" 97 #include "content/renderer/media/audio_device_factory.h"
97 #include "content/renderer/media/media_permission_dispatcher.h" 98 #include "content/renderer/media/media_permission_dispatcher.h"
98 #include "content/renderer/media/media_stream_dispatcher.h" 99 #include "content/renderer/media/media_stream_dispatcher.h"
99 #include "content/renderer/media/media_stream_renderer_factory_impl.h" 100 #include "content/renderer/media/media_stream_renderer_factory_impl.h"
100 #include "content/renderer/media/midi_dispatcher.h" 101 #include "content/renderer/media/midi_dispatcher.h"
101 #include "content/renderer/media/render_media_log.h" 102 #include "content/renderer/media/render_media_log.h"
102 #include "content/renderer/media/renderer_webmediaplayer_delegate.h" 103 #include "content/renderer/media/renderer_webmediaplayer_delegate.h"
103 #include "content/renderer/media/user_media_client_impl.h" 104 #include "content/renderer/media/user_media_client_impl.h"
(...skipping 3993 matching lines...) Expand 10 before | Expand all | Expand 10 after
4097 presentation_dispatcher_ = new PresentationDispatcher(this); 4098 presentation_dispatcher_ = new PresentationDispatcher(this);
4098 return presentation_dispatcher_; 4099 return presentation_dispatcher_;
4099 } 4100 }
4100 4101
4101 blink::WebPushClient* RenderFrameImpl::pushClient() { 4102 blink::WebPushClient* RenderFrameImpl::pushClient() {
4102 if (!push_messaging_dispatcher_) 4103 if (!push_messaging_dispatcher_)
4103 push_messaging_dispatcher_ = new PushMessagingDispatcher(this); 4104 push_messaging_dispatcher_ = new PushMessagingDispatcher(this);
4104 return push_messaging_dispatcher_; 4105 return push_messaging_dispatcher_;
4105 } 4106 }
4106 4107
4108 blink::WebInstalledApp* RenderFrameImpl::installedAppClient() {
4109 if (!installed_app_client_) {
4110 installed_app_client_.reset(
4111 new InstalledAppDispatcher(this, GetServiceRegistry()));
4112 }
4113
4114 return installed_app_client_.get();
4115 }
4116
4107 void RenderFrameImpl::willStartUsingPeerConnectionHandler( 4117 void RenderFrameImpl::willStartUsingPeerConnectionHandler(
4108 blink::WebRTCPeerConnectionHandler* handler) { 4118 blink::WebRTCPeerConnectionHandler* handler) {
4109 #if defined(ENABLE_WEBRTC) 4119 #if defined(ENABLE_WEBRTC)
4110 static_cast<RTCPeerConnectionHandler*>(handler)->associateWithFrame(frame_); 4120 static_cast<RTCPeerConnectionHandler*>(handler)->associateWithFrame(frame_);
4111 #endif 4121 #endif
4112 } 4122 }
4113 4123
4114 blink::WebUserMediaClient* RenderFrameImpl::userMediaClient() { 4124 blink::WebUserMediaClient* RenderFrameImpl::userMediaClient() {
4115 if (!web_user_media_client_) 4125 if (!web_user_media_client_)
4116 InitializeUserMediaClient(); 4126 InitializeUserMediaClient();
(...skipping 1986 matching lines...) Expand 10 before | Expand all | Expand 10 after
6103 int match_count, 6113 int match_count,
6104 int ordinal, 6114 int ordinal,
6105 const WebRect& selection_rect, 6115 const WebRect& selection_rect,
6106 bool final_status_update) { 6116 bool final_status_update) {
6107 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, 6117 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count,
6108 selection_rect, ordinal, 6118 selection_rect, ordinal,
6109 final_status_update)); 6119 final_status_update));
6110 } 6120 }
6111 6121
6112 } // namespace content 6122 } // 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