OLD | NEW |
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 CONTENT_PUBLIC_COMMON_MOJO_SHELL_CONNECTION_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_MOJO_SHELL_CONNECTION_H_ |
6 #define CONTENT_PUBLIC_COMMON_MOJO_SHELL_CONNECTION_H_ | 6 #define CONTENT_PUBLIC_COMMON_MOJO_SHELL_CONNECTION_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 #include "mojo/shell/public/interfaces/shell_client.mojom.h" | 10 #include "services/shell/public/interfaces/shell_client.mojom.h" |
11 | 11 |
12 namespace mojo { | 12 namespace mojo { |
13 class Connection; | 13 class Connection; |
14 class Connector; | 14 class Connector; |
15 } | 15 } |
16 | 16 |
17 namespace content { | 17 namespace content { |
18 | 18 |
19 // Encapsulates a connection to a spawning external Mojo shell. | 19 // Encapsulates a connection to a spawning external Mojo shell. |
20 // Access an instance by calling Get(), on the thread the Shell connection is | 20 // Access an instance by calling Get(), on the thread the Shell connection is |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 virtual void AddListener(Listener* listener) = 0; | 68 virtual void AddListener(Listener* listener) = 0; |
69 virtual void RemoveListener(Listener* listener) = 0; | 69 virtual void RemoveListener(Listener* listener) = 0; |
70 | 70 |
71 protected: | 71 protected: |
72 virtual ~MojoShellConnection(); | 72 virtual ~MojoShellConnection(); |
73 }; | 73 }; |
74 | 74 |
75 } // namespace content | 75 } // namespace content |
76 | 76 |
77 #endif // CONTENT_PUBLIC_COMMON_MOJO_SHELL_CONNECTION_H_ | 77 #endif // CONTENT_PUBLIC_COMMON_MOJO_SHELL_CONNECTION_H_ |
OLD | NEW |