OLD | NEW |
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_SHELL_PUBLIC_CPP_CONNECTOR_H_ | 5 #ifndef MOJO_SHELL_PUBLIC_CPP_CONNECTOR_H_ |
6 #define MOJO_SHELL_PUBLIC_CPP_CONNECTOR_H_ | 6 #define MOJO_SHELL_PUBLIC_CPP_CONNECTOR_H_ |
7 | 7 |
8 #include "mojo/shell/public/cpp/connection.h" | 8 #include "mojo/shell/public/cpp/connection.h" |
9 #include "mojo/shell/public/interfaces/shell.mojom.h" | 9 #include "mojo/shell/public/interfaces/connector.mojom.h" |
10 | 10 |
11 namespace mojo { | 11 namespace mojo { |
12 | 12 |
13 // An interface that encapsulates the Mojo Shell's broker interface by which | 13 // An interface that encapsulates the Mojo Shell's broker interface by which |
14 // connections between applications are established. Once Connect() is called, | 14 // connections between applications are established. Once Connect() is called, |
15 // this class is bound to the thread the call was made on and it cannot be | 15 // this class is bound to the thread the call was made on and it cannot be |
16 // passed to another thread without calling Clone(). | 16 // passed to another thread without calling Clone(). |
17 // An instance of this class is created internally by ShellConnection for use | 17 // An instance of this class is created internally by ShellConnection for use |
18 // on the thread ShellConnection is instantiated on, and this interface is | 18 // on the thread ShellConnection is instantiated on, and this interface is |
19 // wrapped by the Shell interface. | 19 // wrapped by the Shell interface. |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 70 |
71 // Creates a new instance of this class which may be passed to another thread. | 71 // Creates a new instance of this class which may be passed to another thread. |
72 // The returned object may be passed multiple times until Connect() is called, | 72 // The returned object may be passed multiple times until Connect() is called, |
73 // at which point this method must be called again to pass again. | 73 // at which point this method must be called again to pass again. |
74 virtual scoped_ptr<Connector> Clone() = 0; | 74 virtual scoped_ptr<Connector> Clone() = 0; |
75 }; | 75 }; |
76 | 76 |
77 } // namespace mojo | 77 } // namespace mojo |
78 | 78 |
79 #endif // MOJO_SHELL_PUBLIC_CPP_CONNECTOR_H_ | 79 #endif // MOJO_SHELL_PUBLIC_CPP_CONNECTOR_H_ |
OLD | NEW |