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 6075 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6086 mojo::shell::mojom::InterfaceProviderPtr RenderFrameImpl::ConnectToApplication( | 6086 mojo::shell::mojom::InterfaceProviderPtr RenderFrameImpl::ConnectToApplication( |
6087 const GURL& url) { | 6087 const GURL& url) { |
6088 if (!connector_) | 6088 if (!connector_) |
6089 GetServiceRegistry()->ConnectToRemoteService(mojo::GetProxy(&connector_)); | 6089 GetServiceRegistry()->ConnectToRemoteService(mojo::GetProxy(&connector_)); |
6090 mojo::shell::mojom::InterfaceProviderPtr interface_provider; | 6090 mojo::shell::mojom::InterfaceProviderPtr interface_provider; |
6091 mojo::shell::mojom::IdentityPtr target(mojo::shell::mojom::Identity::New()); | 6091 mojo::shell::mojom::IdentityPtr target(mojo::shell::mojom::Identity::New()); |
6092 target->name = url.spec(); | 6092 target->name = url.spec(); |
6093 target->user_id = mojo::shell::mojom::kInheritUserID; | 6093 target->user_id = mojo::shell::mojom::kInheritUserID; |
6094 target->instance = ""; | 6094 target->instance = ""; |
6095 connector_->Connect(std::move(target), GetProxy(&interface_provider), nullptr, | 6095 connector_->Connect(std::move(target), GetProxy(&interface_provider), nullptr, |
6096 base::Bind(&OnGotInstanceID)); | 6096 nullptr, base::Bind(&OnGotInstanceID)); |
6097 return interface_provider; | 6097 return interface_provider; |
6098 } | 6098 } |
6099 | 6099 |
6100 media::RendererWebMediaPlayerDelegate* | 6100 media::RendererWebMediaPlayerDelegate* |
6101 RenderFrameImpl::GetWebMediaPlayerDelegate() { | 6101 RenderFrameImpl::GetWebMediaPlayerDelegate() { |
6102 if (!media_player_delegate_) | 6102 if (!media_player_delegate_) |
6103 media_player_delegate_ = new media::RendererWebMediaPlayerDelegate(this); | 6103 media_player_delegate_ = new media::RendererWebMediaPlayerDelegate(this); |
6104 return media_player_delegate_; | 6104 return media_player_delegate_; |
6105 } | 6105 } |
6106 | 6106 |
(...skipping 26 matching lines...) Expand all Loading... |
6133 int match_count, | 6133 int match_count, |
6134 int ordinal, | 6134 int ordinal, |
6135 const WebRect& selection_rect, | 6135 const WebRect& selection_rect, |
6136 bool final_status_update) { | 6136 bool final_status_update) { |
6137 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, | 6137 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, |
6138 selection_rect, ordinal, | 6138 selection_rect, ordinal, |
6139 final_status_update)); | 6139 final_status_update)); |
6140 } | 6140 } |
6141 | 6141 |
6142 } // namespace content | 6142 } // namespace content |
OLD | NEW |