| 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" | |
| 17 #include "mojo/public/cpp/system/core.h" | 16 #include "mojo/public/cpp/system/core.h" |
| 18 #include "services/shell/public/cpp/shell_client.h" | 17 #include "services/shell/public/cpp/shell_client.h" |
| 19 #include "services/shell/public/interfaces/connector.mojom.h" | 18 #include "services/shell/public/interfaces/connector.mojom.h" |
| 20 #include "services/shell/public/interfaces/shell_client.mojom.h" | 19 #include "services/shell/public/interfaces/shell_client.mojom.h" |
| 21 | 20 |
| 22 namespace shell { | 21 namespace shell { |
| 23 | 22 |
| 24 class Connector; | 23 class Connector; |
| 25 | 24 |
| 26 // Encapsulates a connection to the Mojo Shell in two parts: | 25 // Encapsulates a connection to the Mojo Shell in two parts: |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 bool should_run_connection_lost_closure_ = false; | 97 bool should_run_connection_lost_closure_ = false; |
| 99 | 98 |
| 100 base::Closure connection_lost_closure_; | 99 base::Closure connection_lost_closure_; |
| 101 | 100 |
| 102 DISALLOW_COPY_AND_ASSIGN(ShellConnection); | 101 DISALLOW_COPY_AND_ASSIGN(ShellConnection); |
| 103 }; | 102 }; |
| 104 | 103 |
| 105 } // namespace shell | 104 } // namespace shell |
| 106 | 105 |
| 107 #endif // SERVICES_SHELL_PUBLIC_CPP_SHELL_CONNECTION_H_ | 106 #endif // SERVICES_SHELL_PUBLIC_CPP_SHELL_CONNECTION_H_ |
| OLD | NEW |