| 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 5959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5970 #endif | 5970 #endif |
| 5971 return decoder_factory_.get(); | 5971 return decoder_factory_.get(); |
| 5972 } | 5972 } |
| 5973 | 5973 |
| 5974 void RenderFrameImpl::RegisterMojoServices() { | 5974 void RenderFrameImpl::RegisterMojoServices() { |
| 5975 // Only main frame have ImageDownloader service. | 5975 // Only main frame have ImageDownloader service. |
| 5976 if (!frame_->parent()) { | 5976 if (!frame_->parent()) { |
| 5977 GetServiceRegistry()->AddService(base::Bind( | 5977 GetServiceRegistry()->AddService(base::Bind( |
| 5978 &ImageDownloaderImpl::CreateMojoService, base::Unretained(this))); | 5978 &ImageDownloaderImpl::CreateMojoService, base::Unretained(this))); |
| 5979 } | 5979 } |
| 5980 GetServiceRegistry()->AddService(base::Bind( |
| 5981 &ManifestManager::BindToRequest, base::Unretained(manifest_manager_))); |
| 5980 } | 5982 } |
| 5981 | 5983 |
| 5982 template <typename Interface> | 5984 template <typename Interface> |
| 5983 void RenderFrameImpl::GetInterface(mojo::InterfaceRequest<Interface> request) { | 5985 void RenderFrameImpl::GetInterface(mojo::InterfaceRequest<Interface> request) { |
| 5984 GetServiceRegistry()->ConnectToRemoteService(std::move(request)); | 5986 GetServiceRegistry()->ConnectToRemoteService(std::move(request)); |
| 5985 } | 5987 } |
| 5986 | 5988 |
| 5987 shell::mojom::InterfaceProviderPtr RenderFrameImpl::ConnectToApplication( | 5989 shell::mojom::InterfaceProviderPtr RenderFrameImpl::ConnectToApplication( |
| 5988 const GURL& url) { | 5990 const GURL& url) { |
| 5989 if (!connector_) | 5991 if (!connector_) |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6039 int match_count, | 6041 int match_count, |
| 6040 int ordinal, | 6042 int ordinal, |
| 6041 const WebRect& selection_rect, | 6043 const WebRect& selection_rect, |
| 6042 bool final_status_update) { | 6044 bool final_status_update) { |
| 6043 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, | 6045 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, |
| 6044 selection_rect, ordinal, | 6046 selection_rect, ordinal, |
| 6045 final_status_update)); | 6047 final_status_update)); |
| 6046 } | 6048 } |
| 6047 | 6049 |
| 6048 } // namespace content | 6050 } // namespace content |
| OLD | NEW |