| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_ASSOCIATED_INTERFACE_PTR_H_ | 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_ASSOCIATED_INTERFACE_PTR_H_ |
| 6 #define MOJO_PUBLIC_CPP_BINDINGS_ASSOCIATED_INTERFACE_PTR_H_ | 6 #define MOJO_PUBLIC_CPP_BINDINGS_ASSOCIATED_INTERFACE_PTR_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include "base/logging.h" | 10 #include "base/logging.h" |
| 9 #include "base/macros.h" | 11 #include "base/macros.h" |
| 10 #include "mojo/public/cpp/bindings/associated_group.h" | 12 #include "mojo/public/cpp/bindings/associated_group.h" |
| 11 #include "mojo/public/cpp/bindings/associated_interface_ptr_info.h" | 13 #include "mojo/public/cpp/bindings/associated_interface_ptr_info.h" |
| 12 #include "mojo/public/cpp/bindings/associated_interface_request.h" | 14 #include "mojo/public/cpp/bindings/associated_interface_request.h" |
| 13 #include "mojo/public/cpp/bindings/callback.h" | 15 #include "mojo/public/cpp/bindings/callback.h" |
| 14 #include "mojo/public/cpp/bindings/lib/associated_interface_ptr_state.h" | 16 #include "mojo/public/cpp/bindings/lib/associated_interface_ptr_state.h" |
| 15 | 17 |
| 16 namespace mojo { | 18 namespace mojo { |
| 17 | 19 |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 group->CreateAssociatedInterface(AssociatedGroup::WILL_PASS_REQUEST, | 185 group->CreateAssociatedInterface(AssociatedGroup::WILL_PASS_REQUEST, |
| 184 &ptr_info, &request); | 186 &ptr_info, &request); |
| 185 | 187 |
| 186 ptr->Bind(ptr_info.Pass()); | 188 ptr->Bind(ptr_info.Pass()); |
| 187 return request.Pass(); | 189 return request.Pass(); |
| 188 } | 190 } |
| 189 | 191 |
| 190 } // namespace mojo | 192 } // namespace mojo |
| 191 | 193 |
| 192 #endif // MOJO_PUBLIC_CPP_BINDINGS_ASSOCIATED_INTERFACE_PTR_H_ | 194 #endif // MOJO_PUBLIC_CPP_BINDINGS_ASSOCIATED_INTERFACE_PTR_H_ |
| OLD | NEW |