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

Side by Side Diff: mojo/public/cpp/bindings/associated_group_controller.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/associated_group.h ('k') | mojo/public/cpp/bindings/bindings_export.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_GROUP_CONTROLLER_H_ 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_ASSOCIATED_GROUP_CONTROLLER_H_
6 #define MOJO_PUBLIC_CPP_BINDINGS_ASSOCIATED_GROUP_CONTROLLER_H_ 6 #define MOJO_PUBLIC_CPP_BINDINGS_ASSOCIATED_GROUP_CONTROLLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
13 #include "mojo/public/cpp/bindings/bindings_export.h"
13 #include "mojo/public/cpp/bindings/interface_id.h" 14 #include "mojo/public/cpp/bindings/interface_id.h"
14 #include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h" 15 #include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h"
15 16
16 namespace mojo { 17 namespace mojo {
17 18
18 class AssociatedGroup; 19 class AssociatedGroup;
19 class InterfaceEndpointClient; 20 class InterfaceEndpointClient;
20 class InterfaceEndpointController; 21 class InterfaceEndpointController;
21 22
22 // An internal interface used to manage endpoints within an associated group. 23 // An internal interface used to manage endpoints within an associated group.
23 class AssociatedGroupController : 24 class MOJO_CPP_BINDINGS_EXPORT AssociatedGroupController
24 public base::RefCountedThreadSafe<AssociatedGroupController> { 25 : public base::RefCountedThreadSafe<AssociatedGroupController> {
25 public: 26 public:
26 // Creates a pair of interface endpoint handles. The method generates a new 27 // Creates a pair of interface endpoint handles. The method generates a new
27 // interface ID and assigns it to the two handles. |local_endpoint| is used 28 // interface ID and assigns it to the two handles. |local_endpoint| is used
28 // locally; while |remote_endpoint| is sent over the message pipe. 29 // locally; while |remote_endpoint| is sent over the message pipe.
29 virtual void CreateEndpointHandlePair( 30 virtual void CreateEndpointHandlePair(
30 ScopedInterfaceEndpointHandle* local_endpoint, 31 ScopedInterfaceEndpointHandle* local_endpoint,
31 ScopedInterfaceEndpointHandle* remote_endpoint) = 0; 32 ScopedInterfaceEndpointHandle* remote_endpoint) = 0;
32 33
33 // Creates an interface endpoint handle from a given interface ID. The handle 34 // Creates an interface endpoint handle from a given interface ID. The handle
34 // is used locally. 35 // is used locally.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 ScopedInterfaceEndpointHandle CreateScopedInterfaceEndpointHandle( 70 ScopedInterfaceEndpointHandle CreateScopedInterfaceEndpointHandle(
70 InterfaceId id, 71 InterfaceId id,
71 bool is_local); 72 bool is_local);
72 73
73 virtual ~AssociatedGroupController(); 74 virtual ~AssociatedGroupController();
74 }; 75 };
75 76
76 } // namespace mojo 77 } // namespace mojo
77 78
78 #endif // MOJO_PUBLIC_CPP_BINDINGS_ASSOCIATED_GROUP_CONTROLLER_H_ 79 #endif // MOJO_PUBLIC_CPP_BINDINGS_ASSOCIATED_GROUP_CONTROLLER_H_
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/associated_group.h ('k') | mojo/public/cpp/bindings/bindings_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698