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 MOJO_APPLICATION_PUBLIC_CPP_APPLICATION_IMPL_H_ | 5 #ifndef MOJO_SHELL_PUBLIC_CPP_APPLICATION_IMPL_H_ |
6 #define MOJO_APPLICATION_PUBLIC_CPP_APPLICATION_IMPL_H_ | 6 #define MOJO_SHELL_PUBLIC_CPP_APPLICATION_IMPL_H_ |
7 | 7 |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/scoped_vector.h" | 12 #include "base/memory/scoped_vector.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "mojo/application/public/cpp/app_lifetime_helper.h" | |
15 #include "mojo/application/public/cpp/application_connection.h" | |
16 #include "mojo/application/public/cpp/application_delegate.h" | |
17 #include "mojo/application/public/cpp/lib/service_registry.h" | |
18 #include "mojo/application/public/interfaces/application.mojom.h" | |
19 #include "mojo/application/public/interfaces/shell.mojom.h" | |
20 #include "mojo/public/cpp/bindings/binding.h" | 14 #include "mojo/public/cpp/bindings/binding.h" |
21 #include "mojo/public/cpp/bindings/callback.h" | 15 #include "mojo/public/cpp/bindings/callback.h" |
22 #include "mojo/public/cpp/system/core.h" | 16 #include "mojo/public/cpp/system/core.h" |
| 17 #include "mojo/shell/public/cpp/app_lifetime_helper.h" |
| 18 #include "mojo/shell/public/cpp/application_connection.h" |
| 19 #include "mojo/shell/public/cpp/application_delegate.h" |
| 20 #include "mojo/shell/public/cpp/lib/service_registry.h" |
| 21 #include "mojo/shell/public/interfaces/application.mojom.h" |
| 22 #include "mojo/shell/public/interfaces/shell.mojom.h" |
23 | 23 |
24 namespace mojo { | 24 namespace mojo { |
25 | 25 |
26 CapabilityFilterPtr CreatePermissiveCapabilityFilter(); | 26 CapabilityFilterPtr CreatePermissiveCapabilityFilter(); |
27 | 27 |
28 // TODO(beng): This comment is hilariously out of date. | 28 // TODO(beng): This comment is hilariously out of date. |
29 // Utility class for communicating with the Shell, and providing Services | 29 // Utility class for communicating with the Shell, and providing Services |
30 // to clients. | 30 // to clients. |
31 // | 31 // |
32 // To use define a class that implements your specific server api, e.g. FooImpl | 32 // To use define a class that implements your specific server api, e.g. FooImpl |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 Closure termination_closure_; | 176 Closure termination_closure_; |
177 AppLifetimeHelper app_lifetime_helper_; | 177 AppLifetimeHelper app_lifetime_helper_; |
178 bool quit_requested_; | 178 bool quit_requested_; |
179 base::WeakPtrFactory<ApplicationImpl> weak_factory_; | 179 base::WeakPtrFactory<ApplicationImpl> weak_factory_; |
180 | 180 |
181 MOJO_DISALLOW_COPY_AND_ASSIGN(ApplicationImpl); | 181 MOJO_DISALLOW_COPY_AND_ASSIGN(ApplicationImpl); |
182 }; | 182 }; |
183 | 183 |
184 } // namespace mojo | 184 } // namespace mojo |
185 | 185 |
186 #endif // MOJO_APPLICATION_PUBLIC_CPP_APPLICATION_IMPL_H_ | 186 #endif // MOJO_SHELL_PUBLIC_CPP_APPLICATION_IMPL_H_ |
OLD | NEW |