OLD | NEW |
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_BINDING_SET_H_ | 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_BINDING_SET_H_ |
6 #define MOJO_PUBLIC_CPP_BINDINGS_BINDING_SET_H_ | 6 #define MOJO_PUBLIC_CPP_BINDINGS_BINDING_SET_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/ptr_util.h" |
14 #include "mojo/public/cpp/bindings/binding.h" | 15 #include "mojo/public/cpp/bindings/binding.h" |
15 #include "mojo/public/cpp/bindings/connection_error_callback.h" | 16 #include "mojo/public/cpp/bindings/connection_error_callback.h" |
16 #include "mojo/public/cpp/bindings/interface_ptr.h" | 17 #include "mojo/public/cpp/bindings/interface_ptr.h" |
17 #include "mojo/public/cpp/bindings/interface_request.h" | 18 #include "mojo/public/cpp/bindings/interface_request.h" |
18 #include "mojo/public/cpp/bindings/message.h" | 19 #include "mojo/public/cpp/bindings/message.h" |
19 | 20 |
20 namespace mojo { | 21 namespace mojo { |
21 | 22 |
22 template <typename BindingType> | 23 template <typename BindingType> |
23 struct BindingSetTraits; | 24 struct BindingSetTraits; |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 BindingId next_binding_id_ = 0; | 233 BindingId next_binding_id_ = 0; |
233 std::map<BindingId, std::unique_ptr<Entry>> bindings_; | 234 std::map<BindingId, std::unique_ptr<Entry>> bindings_; |
234 void* dispatch_context_ = nullptr; | 235 void* dispatch_context_ = nullptr; |
235 | 236 |
236 DISALLOW_COPY_AND_ASSIGN(BindingSet); | 237 DISALLOW_COPY_AND_ASSIGN(BindingSet); |
237 }; | 238 }; |
238 | 239 |
239 } // namespace mojo | 240 } // namespace mojo |
240 | 241 |
241 #endif // MOJO_PUBLIC_CPP_BINDINGS_BINDING_SET_H_ | 242 #endif // MOJO_PUBLIC_CPP_BINDINGS_BINDING_SET_H_ |
OLD | NEW |