| 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 5962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5973 #endif | 5973 #endif |
| 5974 return decoder_factory_.get(); | 5974 return decoder_factory_.get(); |
| 5975 } | 5975 } |
| 5976 | 5976 |
| 5977 void RenderFrameImpl::RegisterMojoServices() { | 5977 void RenderFrameImpl::RegisterMojoServices() { |
| 5978 // Only main frame have ImageDownloader service. | 5978 // Only main frame have ImageDownloader service. |
| 5979 if (!frame_->parent()) { | 5979 if (!frame_->parent()) { |
| 5980 GetServiceRegistry()->AddService(base::Bind( | 5980 GetServiceRegistry()->AddService(base::Bind( |
| 5981 &ImageDownloaderImpl::CreateMojoService, base::Unretained(this))); | 5981 &ImageDownloaderImpl::CreateMojoService, base::Unretained(this))); |
| 5982 } | 5982 } |
| 5983 GetServiceRegistry()->AddService(base::Bind( |
| 5984 &ManifestManager::BindToRequest, base::Unretained(manifest_manager_))); |
| 5983 } | 5985 } |
| 5984 | 5986 |
| 5985 template <typename Interface> | 5987 template <typename Interface> |
| 5986 void RenderFrameImpl::GetInterface(mojo::InterfaceRequest<Interface> request) { | 5988 void RenderFrameImpl::GetInterface(mojo::InterfaceRequest<Interface> request) { |
| 5987 GetServiceRegistry()->ConnectToRemoteService(std::move(request)); | 5989 GetServiceRegistry()->ConnectToRemoteService(std::move(request)); |
| 5988 } | 5990 } |
| 5989 | 5991 |
| 5990 shell::mojom::InterfaceProviderPtr RenderFrameImpl::ConnectToApplication( | 5992 shell::mojom::InterfaceProviderPtr RenderFrameImpl::ConnectToApplication( |
| 5991 const GURL& url) { | 5993 const GURL& url) { |
| 5992 if (!connector_) | 5994 if (!connector_) |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6104 // event target. Potentially a Pepper plugin will receive the event. | 6106 // event target. Potentially a Pepper plugin will receive the event. |
| 6105 // In order to tell whether a plugin gets the last mouse event and which it | 6107 // In order to tell whether a plugin gets the last mouse event and which it |
| 6106 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6108 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
| 6107 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6109 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
| 6108 // |pepper_last_mouse_event_target_|. | 6110 // |pepper_last_mouse_event_target_|. |
| 6109 pepper_last_mouse_event_target_ = nullptr; | 6111 pepper_last_mouse_event_target_ = nullptr; |
| 6110 #endif | 6112 #endif |
| 6111 } | 6113 } |
| 6112 | 6114 |
| 6113 } // namespace content | 6115 } // namespace content |
| OLD | NEW |