Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1321)

Unified Diff: mojo/public/cpp/bindings/associated_binding.h

Issue 1991463002: Mojo: Expose untyped associated endpoints through public API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/public/cpp/bindings/BUILD.gn ('k') | mojo/public/cpp/bindings/associated_group.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/associated_binding.h
diff --git a/mojo/public/cpp/bindings/associated_binding.h b/mojo/public/cpp/bindings/associated_binding.h
index 9470b3549b4394a8978944836d505dba0d852ffb..2d4e3392230bc936a18978e692f8c6c49b925014 100644
--- a/mojo/public/cpp/bindings/associated_binding.h
+++ b/mojo/public/cpp/bindings/associated_binding.h
@@ -18,7 +18,7 @@
#include "mojo/public/cpp/bindings/callback.h"
#include "mojo/public/cpp/bindings/lib/interface_endpoint_client.h"
#include "mojo/public/cpp/bindings/lib/multiplex_router.h"
-#include "mojo/public/cpp/bindings/lib/scoped_interface_endpoint_handle.h"
+#include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h"
namespace mojo {
@@ -86,8 +86,7 @@ class AssociatedBinding {
void Bind(AssociatedInterfaceRequest<Interface> request,
scoped_refptr<base::SingleThreadTaskRunner> runner =
base::ThreadTaskRunnerHandle::Get()) {
- internal::ScopedInterfaceEndpointHandle handle =
- internal::AssociatedInterfaceRequestHelper::PassHandle(&request);
+ ScopedInterfaceEndpointHandle handle = request.PassHandle();
DCHECK(handle.is_local())
<< "The AssociatedInterfaceRequest is supposed to be used at the "
@@ -123,8 +122,7 @@ class AssociatedBinding {
DCHECK(endpoint_client_);
AssociatedInterfaceRequest<Interface> request;
- internal::AssociatedInterfaceRequestHelper::SetHandle(
- &request, endpoint_client_->PassHandle());
+ request.Bind(endpoint_client_->PassHandle());
endpoint_client_.reset();
connection_error_handler_.reset();
« no previous file with comments | « mojo/public/cpp/bindings/BUILD.gn ('k') | mojo/public/cpp/bindings/associated_group.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698