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

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

Issue 2821473002: Service CreateNewWindow on the UI thread with a new mojo interface (Closed)
Patch Set: MakeShared goodness Created 3 years, 8 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 1179 matching lines...) Expand 10 before | Expand all | Expand 10 after
1190 media::mojom::RemotingSourceRequest remoting_source_request(&remoting_source); 1190 media::mojom::RemotingSourceRequest remoting_source_request(&remoting_source);
1191 media::mojom::RemoterPtr remoter; 1191 media::mojom::RemoterPtr remoter;
1192 GetRemoterFactory()->Create(std::move(remoting_source), 1192 GetRemoterFactory()->Create(std::move(remoting_source),
1193 mojo::MakeRequest(&remoter)); 1193 mojo::MakeRequest(&remoter));
1194 remoting_sink_observer_ = 1194 remoting_sink_observer_ =
1195 base::MakeUnique<media::remoting::SinkAvailabilityObserver>( 1195 base::MakeUnique<media::remoting::SinkAvailabilityObserver>(
1196 std::move(remoting_source_request), std::move(remoter)); 1196 std::move(remoting_source_request), std::move(remoter));
1197 #endif // BUILDFLAG(ENABLE_MEDIA_REMOTING) 1197 #endif // BUILDFLAG(ENABLE_MEDIA_REMOTING)
1198 } 1198 }
1199 1199
1200 mojom::FrameHostAssociatedPtr RenderFrameImpl::GetFrameHost() {
1201 mojom::FrameHostAssociatedPtr frame_host_ptr;
1202 GetRemoteAssociatedInterfaces()->GetInterface(&frame_host_ptr);
1203 return frame_host_ptr;
1204 }
1205
1200 RenderFrameImpl::~RenderFrameImpl() { 1206 RenderFrameImpl::~RenderFrameImpl() {
1201 // If file chooser is still waiting for answer, dispatch empty answer. 1207 // If file chooser is still waiting for answer, dispatch empty answer.
1202 while (!file_chooser_completions_.empty()) { 1208 while (!file_chooser_completions_.empty()) {
1203 if (file_chooser_completions_.front()->completion) { 1209 if (file_chooser_completions_.front()->completion) {
1204 file_chooser_completions_.front()->completion->DidChooseFile( 1210 file_chooser_completions_.front()->completion->DidChooseFile(
1205 WebVector<WebString>()); 1211 WebVector<WebString>());
1206 } 1212 }
1207 file_chooser_completions_.pop_front(); 1213 file_chooser_completions_.pop_front();
1208 } 1214 }
1209 1215
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
1658 routing_id_, "url", common_params.url.possibly_invalid_spec()); 1664 routing_id_, "url", common_params.url.possibly_invalid_spec());
1659 NavigateInternal(common_params, start_params, request_params, 1665 NavigateInternal(common_params, start_params, request_params,
1660 std::unique_ptr<StreamOverrideParameters>()); 1666 std::unique_ptr<StreamOverrideParameters>());
1661 } 1667 }
1662 1668
1663 void RenderFrameImpl::BindEngagement( 1669 void RenderFrameImpl::BindEngagement(
1664 blink::mojom::EngagementClientAssociatedRequest request) { 1670 blink::mojom::EngagementClientAssociatedRequest request) {
1665 engagement_binding_.Bind(std::move(request)); 1671 engagement_binding_.Bind(std::move(request));
1666 } 1672 }
1667 1673
1668 void RenderFrameImpl::BindFrame(mojom::FrameRequest request, 1674 void RenderFrameImpl::BindFrame(
1669 mojom::FrameHostPtr host) { 1675 mojom::FrameRequest request,
1676 mojom::FrameHostInterfaceBrokerPtr frame_host_interface_broker) {
1670 frame_binding_.Bind(std::move(request)); 1677 frame_binding_.Bind(std::move(request));
1671 frame_host_ = std::move(host); 1678 frame_host_interface_broker_ = std::move(frame_host_interface_broker);
1672 frame_host_->GetInterfaceProvider( 1679 frame_host_interface_broker_->GetInterfaceProvider(
1673 std::move(pending_remote_interface_provider_request_)); 1680 std::move(pending_remote_interface_provider_request_));
1674 } 1681 }
1675 1682
1676 void RenderFrameImpl::BindFrameBindingsControl( 1683 void RenderFrameImpl::BindFrameBindingsControl(
1677 mojom::FrameBindingsControlAssociatedRequest request) { 1684 mojom::FrameBindingsControlAssociatedRequest request) {
1678 frame_bindings_control_binding_.Bind(std::move(request)); 1685 frame_bindings_control_binding_.Bind(std::move(request));
1679 } 1686 }
1680 1687
1681 ManifestManager* RenderFrameImpl::manifest_manager() { 1688 ManifestManager* RenderFrameImpl::manifest_manager() {
1682 return manifest_manager_; 1689 return manifest_manager_;
(...skipping 5315 matching lines...) Expand 10 before | Expand all | Expand 10 after
6998 policy(info.default_policy), 7005 policy(info.default_policy),
6999 replaces_current_history_item(info.replaces_current_history_item), 7006 replaces_current_history_item(info.replaces_current_history_item),
7000 history_navigation_in_new_child_frame( 7007 history_navigation_in_new_child_frame(
7001 info.is_history_navigation_in_new_child_frame), 7008 info.is_history_navigation_in_new_child_frame),
7002 client_redirect(info.is_client_redirect), 7009 client_redirect(info.is_client_redirect),
7003 cache_disabled(info.is_cache_disabled), 7010 cache_disabled(info.is_cache_disabled),
7004 form(info.form), 7011 form(info.form),
7005 source_location(info.source_location) {} 7012 source_location(info.source_location) {}
7006 7013
7007 } // namespace content 7014 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698