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

Side by Side Diff: mojo/public/cpp/bindings/associated_group.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
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_ASSOCIATED_GROUP_H_ 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_ASSOCIATED_GROUP_H_
6 #define MOJO_PUBLIC_CPP_BINDINGS_ASSOCIATED_GROUP_H_ 6 #define MOJO_PUBLIC_CPP_BINDINGS_ASSOCIATED_GROUP_H_
7 7
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "mojo/public/cpp/bindings/associated_interface_ptr_info.h" 11 #include "mojo/public/cpp/bindings/associated_interface_ptr_info.h"
12 #include "mojo/public/cpp/bindings/associated_interface_request.h" 12 #include "mojo/public/cpp/bindings/associated_interface_request.h"
13 #include "mojo/public/cpp/bindings/bindings_export.h"
13 #include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h" 14 #include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h"
14 15
15 namespace mojo { 16 namespace mojo {
16 17
17 class AssociatedGroupController; 18 class AssociatedGroupController;
18 19
19 // AssociatedGroup refers to all the interface endpoints running at one end of a 20 // AssociatedGroup refers to all the interface endpoints running at one end of a
20 // message pipe. It is used to create associated interfaces for that message 21 // message pipe. It is used to create associated interfaces for that message
21 // pipe. 22 // pipe.
22 // It is thread safe and cheap to make copies. 23 // It is thread safe and cheap to make copies.
23 class AssociatedGroup { 24 class MOJO_CPP_BINDINGS_EXPORT AssociatedGroup {
24 public: 25 public:
25 // Configuration used by CreateAssociatedInterface(). Please see the comments 26 // Configuration used by CreateAssociatedInterface(). Please see the comments
26 // of that method for more details. 27 // of that method for more details.
27 enum AssociatedInterfaceConfig { WILL_PASS_PTR, WILL_PASS_REQUEST }; 28 enum AssociatedInterfaceConfig { WILL_PASS_PTR, WILL_PASS_REQUEST };
28 29
29 AssociatedGroup(); 30 AssociatedGroup();
30 AssociatedGroup(const AssociatedGroup& other); 31 AssociatedGroup(const AssociatedGroup& other);
31 32
32 ~AssociatedGroup(); 33 ~AssociatedGroup();
33 34
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 void CreateEndpointHandlePair( 82 void CreateEndpointHandlePair(
82 ScopedInterfaceEndpointHandle* local_endpoint, 83 ScopedInterfaceEndpointHandle* local_endpoint,
83 ScopedInterfaceEndpointHandle* remote_endpoint); 84 ScopedInterfaceEndpointHandle* remote_endpoint);
84 85
85 scoped_refptr<AssociatedGroupController> controller_; 86 scoped_refptr<AssociatedGroupController> controller_;
86 }; 87 };
87 88
88 } // namespace mojo 89 } // namespace mojo
89 90
90 #endif // MOJO_PUBLIC_CPP_BINDINGS_ASSOCIATED_GROUP_H_ 91 #endif // MOJO_PUBLIC_CPP_BINDINGS_ASSOCIATED_GROUP_H_
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/BUILD.gn ('k') | mojo/public/cpp/bindings/associated_group_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698