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

Side by Side Diff: mojo/public/cpp/bindings/interface_request.h

Issue 1410053006: Move third_party/mojo/src/mojo/public to mojo/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 MOJO_PUBLIC_CPP_BINDINGS_INTERFACE_REQUEST_H_ 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_INTERFACE_REQUEST_H_
6 #define MOJO_PUBLIC_CPP_BINDINGS_INTERFACE_REQUEST_H_ 6 #define MOJO_PUBLIC_CPP_BINDINGS_INTERFACE_REQUEST_H_
7 7
8 #include "mojo/public/cpp/bindings/interface_ptr.h" 8 #include "mojo/public/cpp/bindings/interface_ptr.h"
9 9
10 namespace mojo { 10 namespace mojo {
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 template <typename Interface> 109 template <typename Interface>
110 InterfaceRequest<Interface> GetProxy(InterfacePtr<Interface>* ptr) { 110 InterfaceRequest<Interface> GetProxy(InterfacePtr<Interface>* ptr) {
111 MessagePipe pipe; 111 MessagePipe pipe;
112 ptr->Bind(InterfacePtrInfo<Interface>(pipe.handle0.Pass(), 0u)); 112 ptr->Bind(InterfacePtrInfo<Interface>(pipe.handle0.Pass(), 0u));
113 return MakeRequest<Interface>(pipe.handle1.Pass()); 113 return MakeRequest<Interface>(pipe.handle1.Pass());
114 } 114 }
115 115
116 } // namespace mojo 116 } // namespace mojo
117 117
118 #endif // MOJO_PUBLIC_CPP_BINDINGS_INTERFACE_REQUEST_H_ 118 #endif // MOJO_PUBLIC_CPP_BINDINGS_INTERFACE_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698