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

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

Issue 2358133002: Turn //mojo/public/cpp/bindings and //mojo/public/cpp/system into components (Closed)
Patch Set: Fix wording Created 4 years, 2 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
« no previous file with comments | « mojo/public/cpp/bindings/filter_chain.h ('k') | mojo/public/cpp/bindings/lib/array_internal.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_INTERFACE_ENDPOINT_CLIENT_H_ 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_INTERFACE_ENDPOINT_CLIENT_H_
6 #define MOJO_PUBLIC_CPP_BINDINGS_INTERFACE_ENDPOINT_CLIENT_H_ 6 #define MOJO_PUBLIC_CPP_BINDINGS_INTERFACE_ENDPOINT_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
11 #include <memory> 11 #include <memory>
12 12
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/compiler_specific.h"
14 #include "base/logging.h" 15 #include "base/logging.h"
15 #include "base/macros.h" 16 #include "base/macros.h"
16 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
17 #include "base/memory/weak_ptr.h" 18 #include "base/memory/weak_ptr.h"
18 #include "base/message_loop/message_loop.h" 19 #include "base/message_loop/message_loop.h"
19 #include "base/single_thread_task_runner.h" 20 #include "base/single_thread_task_runner.h"
20 #include "base/threading/thread_checker.h" 21 #include "base/threading/thread_checker.h"
22 #include "mojo/public/cpp/bindings/bindings_export.h"
21 #include "mojo/public/cpp/bindings/connection_error_callback.h" 23 #include "mojo/public/cpp/bindings/connection_error_callback.h"
22 #include "mojo/public/cpp/bindings/filter_chain.h" 24 #include "mojo/public/cpp/bindings/filter_chain.h"
23 #include "mojo/public/cpp/bindings/lib/control_message_handler.h" 25 #include "mojo/public/cpp/bindings/lib/control_message_handler.h"
24 #include "mojo/public/cpp/bindings/lib/control_message_proxy.h" 26 #include "mojo/public/cpp/bindings/lib/control_message_proxy.h"
25 #include "mojo/public/cpp/bindings/message.h" 27 #include "mojo/public/cpp/bindings/message.h"
26 #include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h" 28 #include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h"
27 29
28 namespace mojo { 30 namespace mojo {
29 31
30 class AssociatedGroup; 32 class AssociatedGroup;
31 class AssociatedGroupController; 33 class AssociatedGroupController;
32 class InterfaceEndpointController; 34 class InterfaceEndpointController;
33 35
34 // InterfaceEndpointClient handles message sending and receiving of an interface 36 // InterfaceEndpointClient handles message sending and receiving of an interface
35 // endpoint, either the implementation side or the client side. 37 // endpoint, either the implementation side or the client side.
36 // It should only be accessed and destructed on the creating thread. 38 // It should only be accessed and destructed on the creating thread.
37 class InterfaceEndpointClient : public MessageReceiverWithResponder, 39 class MOJO_CPP_BINDINGS_EXPORT InterfaceEndpointClient
38 public base::MessageLoop::DestructionObserver { 40 : NON_EXPORTED_BASE(public MessageReceiverWithResponder),
41 public base::MessageLoop::DestructionObserver {
39 public: 42 public:
40 // |receiver| is okay to be null. If it is not null, it must outlive this 43 // |receiver| is okay to be null. If it is not null, it must outlive this
41 // object. 44 // object.
42 InterfaceEndpointClient(ScopedInterfaceEndpointHandle handle, 45 InterfaceEndpointClient(ScopedInterfaceEndpointHandle handle,
43 MessageReceiverWithResponderStatus* receiver, 46 MessageReceiverWithResponderStatus* receiver,
44 std::unique_ptr<MessageReceiver> payload_validator, 47 std::unique_ptr<MessageReceiver> payload_validator,
45 bool expect_sync_requests, 48 bool expect_sync_requests,
46 scoped_refptr<base::SingleThreadTaskRunner> runner, 49 scoped_refptr<base::SingleThreadTaskRunner> runner,
47 uint32_t interface_version); 50 uint32_t interface_version);
48 ~InterfaceEndpointClient() override; 51 ~InterfaceEndpointClient() override;
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 base::ThreadChecker thread_checker_; 181 base::ThreadChecker thread_checker_;
179 182
180 base::WeakPtrFactory<InterfaceEndpointClient> weak_ptr_factory_; 183 base::WeakPtrFactory<InterfaceEndpointClient> weak_ptr_factory_;
181 184
182 DISALLOW_COPY_AND_ASSIGN(InterfaceEndpointClient); 185 DISALLOW_COPY_AND_ASSIGN(InterfaceEndpointClient);
183 }; 186 };
184 187
185 } // namespace mojo 188 } // namespace mojo
186 189
187 #endif // MOJO_PUBLIC_CPP_BINDINGS_INTERFACE_ENDPOINT_CLIENT_H_ 190 #endif // MOJO_PUBLIC_CPP_BINDINGS_INTERFACE_ENDPOINT_CLIENT_H_
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/filter_chain.h ('k') | mojo/public/cpp/bindings/lib/array_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698