| 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 6061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6072 mojo::shell::mojom::InterfaceProviderPtr RenderFrameImpl::ConnectToApplication( | 6072 mojo::shell::mojom::InterfaceProviderPtr RenderFrameImpl::ConnectToApplication( |
| 6073 const GURL& url) { | 6073 const GURL& url) { |
| 6074 if (!mojo_shell_) | 6074 if (!mojo_shell_) |
| 6075 GetServiceRegistry()->ConnectToRemoteService(mojo::GetProxy(&mojo_shell_)); | 6075 GetServiceRegistry()->ConnectToRemoteService(mojo::GetProxy(&mojo_shell_)); |
| 6076 mojo::shell::mojom::InterfaceProviderPtr interface_provider; | 6076 mojo::shell::mojom::InterfaceProviderPtr interface_provider; |
| 6077 mojo::shell::mojom::CapabilityFilterPtr filter( | 6077 mojo::shell::mojom::CapabilityFilterPtr filter( |
| 6078 mojo::shell::mojom::CapabilityFilter::New()); | 6078 mojo::shell::mojom::CapabilityFilter::New()); |
| 6079 mojo::Array<mojo::String> all_interfaces; | 6079 mojo::Array<mojo::String> all_interfaces; |
| 6080 all_interfaces.push_back("*"); | 6080 all_interfaces.push_back("*"); |
| 6081 filter->filter.insert("*", std::move(all_interfaces)); | 6081 filter->filter.insert("*", std::move(all_interfaces)); |
| 6082 mojo_shell_->Connect( | 6082 mojo::shell::mojom::ConnectorPtr connector; |
| 6083 url.spec(), mojo::shell::mojom::Shell::kUserInherit, | 6083 mojo_shell_->GetConnector(GetProxy(&connector)); |
| 6084 connector->Connect( |
| 6085 url.spec(), mojo::shell::mojom::Connector::kUserInherit, |
| 6084 GetProxy(&interface_provider), nullptr, std::move(filter), | 6086 GetProxy(&interface_provider), nullptr, std::move(filter), |
| 6085 base::Bind(&OnGotInstanceID)); | 6087 base::Bind(&OnGotInstanceID)); |
| 6086 return interface_provider; | 6088 return interface_provider; |
| 6087 } | 6089 } |
| 6088 | 6090 |
| 6089 media::RendererWebMediaPlayerDelegate* | 6091 media::RendererWebMediaPlayerDelegate* |
| 6090 RenderFrameImpl::GetWebMediaPlayerDelegate() { | 6092 RenderFrameImpl::GetWebMediaPlayerDelegate() { |
| 6091 if (!media_player_delegate_) | 6093 if (!media_player_delegate_) |
| 6092 media_player_delegate_ = new media::RendererWebMediaPlayerDelegate(this); | 6094 media_player_delegate_ = new media::RendererWebMediaPlayerDelegate(this); |
| 6093 return media_player_delegate_; | 6095 return media_player_delegate_; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 6122 int match_count, | 6124 int match_count, |
| 6123 int ordinal, | 6125 int ordinal, |
| 6124 const WebRect& selection_rect, | 6126 const WebRect& selection_rect, |
| 6125 bool final_status_update) { | 6127 bool final_status_update) { |
| 6126 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, | 6128 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, |
| 6127 selection_rect, ordinal, | 6129 selection_rect, ordinal, |
| 6128 final_status_update)); | 6130 final_status_update)); |
| 6129 } | 6131 } |
| 6130 | 6132 |
| 6131 } // namespace content | 6133 } // namespace content |
| OLD | NEW |