| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef CONTENT_PUBLIC_COMMON_ASSOCIATED_INTERFACE_PROVIDER_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_ASSOCIATED_INTERFACE_PROVIDER_H_ |
| 6 #define CONTENT_PUBLIC_COMMON_ASSOCIATED_INTERFACE_PROVIDER_H_ | 6 #define CONTENT_PUBLIC_COMMON_ASSOCIATED_INTERFACE_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "mojo/public/cpp/bindings/associated_interface_ptr.h" | 10 #include "mojo/public/cpp/bindings/associated_interface_ptr.h" |
| 11 #include "mojo/public/cpp/bindings/associated_interface_request.h" | 11 #include "mojo/public/cpp/bindings/associated_interface_request.h" |
| 12 #include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h" | 12 #include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h" |
| 13 | 13 |
| 14 namespace mojo { | 14 namespace mojo { |
| 15 class AssociatedGroup; | 15 class AssociatedGroup; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace content { | 18 namespace content { |
| 19 | 19 |
| 20 // A helper interface for connecting to remote Channel-associated interfaces. | 20 // A helper interface for connecting to remote Channel-associated interfaces. |
| 21 // | 21 // |
| 22 // This is analogous to shell::InterfaceProvider in that it provides a means of | 22 // This is analogous to service_manager::InterfaceProvider in that it provides a |
| 23 // means of |
| 23 // binding proxies to remote interfaces, but this is specifically for interfaces | 24 // binding proxies to remote interfaces, but this is specifically for interfaces |
| 24 // which must be assocaited with an IPC::Channel, i.e. retain FIFO message | 25 // which must be assocaited with an IPC::Channel, i.e. retain FIFO message |
| 25 // ordering with respect to legacy IPC messages. | 26 // ordering with respect to legacy IPC messages. |
| 26 // | 27 // |
| 27 // The Channel with which the remote interfaces are associated depends on | 28 // The Channel with which the remote interfaces are associated depends on |
| 28 // the configuration of the specific AssociatedInterfaceProvider instance. For | 29 // the configuration of the specific AssociatedInterfaceProvider instance. For |
| 29 // example, RenderFrameHost exposes an instance of this class for which all | 30 // example, RenderFrameHost exposes an instance of this class for which all |
| 30 // interfaces are associted with the IPC::ChannelProxy to the render process | 31 // interfaces are associted with the IPC::ChannelProxy to the render process |
| 31 // which hosts its corresponding RenderFrame. | 32 // which hosts its corresponding RenderFrame. |
| 32 class AssociatedInterfaceProvider { | 33 class AssociatedInterfaceProvider { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 52 | 53 |
| 53 virtual void OverrideBinderForTesting( | 54 virtual void OverrideBinderForTesting( |
| 54 const std::string& name, | 55 const std::string& name, |
| 55 const base::Callback<void(mojo::ScopedInterfaceEndpointHandle)>& | 56 const base::Callback<void(mojo::ScopedInterfaceEndpointHandle)>& |
| 56 binder) = 0; | 57 binder) = 0; |
| 57 }; | 58 }; |
| 58 | 59 |
| 59 } // namespace content | 60 } // namespace content |
| 60 | 61 |
| 61 #endif // CONTENT_PUBLIC_COMMON_ASSOCIATED_INTERFACE_PROVIDER_H_ | 62 #endif // CONTENT_PUBLIC_COMMON_ASSOCIATED_INTERFACE_PROVIDER_H_ |
| OLD | NEW |