OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 SERVICES_SHELL_PUBLIC_CPP_SHELL_CONNECTION_H_ | 5 #ifndef SERVICES_SHELL_PUBLIC_CPP_SHELL_CONNECTION_H_ |
6 #define SERVICES_SHELL_PUBLIC_CPP_SHELL_CONNECTION_H_ | 6 #define SERVICES_SHELL_PUBLIC_CPP_SHELL_CONNECTION_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/scoped_vector.h" | 14 #include "base/memory/scoped_vector.h" |
15 #include "mojo/public/cpp/bindings/binding.h" | 15 #include "mojo/public/cpp/bindings/binding.h" |
| 16 #include "mojo/public/cpp/bindings/callback.h" |
16 #include "mojo/public/cpp/system/core.h" | 17 #include "mojo/public/cpp/system/core.h" |
17 #include "services/shell/public/cpp/shell_client.h" | 18 #include "services/shell/public/cpp/shell_client.h" |
18 #include "services/shell/public/interfaces/connector.mojom.h" | 19 #include "services/shell/public/interfaces/connector.mojom.h" |
19 #include "services/shell/public/interfaces/shell_client.mojom.h" | 20 #include "services/shell/public/interfaces/shell_client.mojom.h" |
20 | 21 |
21 namespace shell { | 22 namespace shell { |
22 | 23 |
23 class Connector; | 24 class Connector; |
24 | 25 |
25 // Encapsulates a connection to the Mojo Shell in two parts: | 26 // Encapsulates a connection to the Mojo Shell in two parts: |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 bool should_run_connection_lost_closure_ = false; | 98 bool should_run_connection_lost_closure_ = false; |
98 | 99 |
99 base::Closure connection_lost_closure_; | 100 base::Closure connection_lost_closure_; |
100 | 101 |
101 DISALLOW_COPY_AND_ASSIGN(ShellConnection); | 102 DISALLOW_COPY_AND_ASSIGN(ShellConnection); |
102 }; | 103 }; |
103 | 104 |
104 } // namespace shell | 105 } // namespace shell |
105 | 106 |
106 #endif // SERVICES_SHELL_PUBLIC_CPP_SHELL_CONNECTION_H_ | 107 #endif // SERVICES_SHELL_PUBLIC_CPP_SHELL_CONNECTION_H_ |
OLD | NEW |