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

Side by Side Diff: mojo/public/cpp/bindings/lib/binding_state.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 unified diff | Download patch
OLDNEW
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_LIB_BINDING_STATE_H_ 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_BINDING_STATE_H_
6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_BINDING_STATE_H_ 6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_BINDING_STATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/ptr_util.h" 13 #include "base/memory/ptr_util.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/single_thread_task_runner.h" 15 #include "base/single_thread_task_runner.h"
16 #include "mojo/public/cpp/bindings/associated_group.h" 16 #include "mojo/public/cpp/bindings/associated_group.h"
17 #include "mojo/public/cpp/bindings/callback.h" 17 #include "mojo/public/cpp/bindings/callback.h"
18 #include "mojo/public/cpp/bindings/interface_ptr.h" 18 #include "mojo/public/cpp/bindings/interface_ptr.h"
19 #include "mojo/public/cpp/bindings/interface_ptr_info.h" 19 #include "mojo/public/cpp/bindings/interface_ptr_info.h"
20 #include "mojo/public/cpp/bindings/interface_request.h" 20 #include "mojo/public/cpp/bindings/interface_request.h"
21 #include "mojo/public/cpp/bindings/lib/filter_chain.h" 21 #include "mojo/public/cpp/bindings/lib/filter_chain.h"
22 #include "mojo/public/cpp/bindings/lib/interface_endpoint_client.h" 22 #include "mojo/public/cpp/bindings/lib/interface_endpoint_client.h"
23 #include "mojo/public/cpp/bindings/lib/interface_id.h" 23 #include "mojo/public/cpp/bindings/lib/interface_id.h"
24 #include "mojo/public/cpp/bindings/lib/message_header_validator.h" 24 #include "mojo/public/cpp/bindings/lib/message_header_validator.h"
25 #include "mojo/public/cpp/bindings/lib/multiplex_router.h" 25 #include "mojo/public/cpp/bindings/lib/multiplex_router.h"
26 #include "mojo/public/cpp/bindings/lib/router.h" 26 #include "mojo/public/cpp/bindings/lib/router.h"
27 #include "mojo/public/cpp/bindings/lib/scoped_interface_endpoint_handle.h" 27 #include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h"
28 #include "mojo/public/cpp/system/core.h" 28 #include "mojo/public/cpp/system/core.h"
29 29
30 namespace mojo { 30 namespace mojo {
31 namespace internal { 31 namespace internal {
32 32
33 template <typename Interface, bool use_multiplex_router> 33 template <typename Interface, bool use_multiplex_router>
34 class BindingState; 34 class BindingState;
35 35
36 // Uses a single-threaded, dedicated router. If |Interface| doesn't have any 36 // Uses a single-threaded, dedicated router. If |Interface| doesn't have any
37 // methods to pass associated interface pointers or requests, there won't be 37 // methods to pass associated interface pointers or requests, there won't be
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 Interface* impl_; 228 Interface* impl_;
229 Closure connection_error_handler_; 229 Closure connection_error_handler_;
230 230
231 DISALLOW_COPY_AND_ASSIGN(BindingState); 231 DISALLOW_COPY_AND_ASSIGN(BindingState);
232 }; 232 };
233 233
234 } // namesapce internal 234 } // namesapce internal
235 } // namespace mojo 235 } // namespace mojo
236 236
237 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_BINDING_STATE_H_ 237 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_BINDING_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698