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_APPLICATION_PUBLIC_CPP_APPLICATION_IMPL_H_ |
6 #define MOJO_APPLICATION_PUBLIC_CPP_APPLICATION_IMPL_H_ | 6 #define MOJO_APPLICATION_PUBLIC_CPP_APPLICATION_IMPL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "mojo/application/public/cpp/app_lifetime_helper.h" | 12 #include "mojo/application/public/cpp/app_lifetime_helper.h" |
13 #include "mojo/application/public/cpp/application_connection.h" | 13 #include "mojo/application/public/cpp/application_connection.h" |
14 #include "mojo/application/public/cpp/application_delegate.h" | 14 #include "mojo/application/public/cpp/application_delegate.h" |
15 #include "mojo/application/public/cpp/lib/service_registry.h" | 15 #include "mojo/application/public/cpp/lib/service_registry.h" |
16 #include "mojo/application/public/interfaces/application.mojom.h" | 16 #include "mojo/application/public/interfaces/application.mojom.h" |
17 #include "mojo/application/public/interfaces/shell.mojom.h" | 17 #include "mojo/application/public/interfaces/shell.mojom.h" |
| 18 #include "mojo/public/cpp/bindings/binding.h" |
18 #include "mojo/public/cpp/bindings/callback.h" | 19 #include "mojo/public/cpp/bindings/callback.h" |
19 #include "mojo/public/cpp/system/core.h" | 20 #include "mojo/public/cpp/system/core.h" |
20 | 21 |
21 namespace mojo { | 22 namespace mojo { |
22 | 23 |
23 // TODO(beng): This comment is hilariously out of date. | 24 // TODO(beng): This comment is hilariously out of date. |
24 // Utility class for communicating with the Shell, and providing Services | 25 // Utility class for communicating with the Shell, and providing Services |
25 // to clients. | 26 // to clients. |
26 // | 27 // |
27 // To use define a class that implements your specific server api, e.g. FooImpl | 28 // To use define a class that implements your specific server api, e.g. FooImpl |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 AppLifetimeHelper app_lifetime_helper_; | 149 AppLifetimeHelper app_lifetime_helper_; |
149 bool quit_requested_; | 150 bool quit_requested_; |
150 base::WeakPtrFactory<ApplicationImpl> weak_factory_; | 151 base::WeakPtrFactory<ApplicationImpl> weak_factory_; |
151 | 152 |
152 MOJO_DISALLOW_COPY_AND_ASSIGN(ApplicationImpl); | 153 MOJO_DISALLOW_COPY_AND_ASSIGN(ApplicationImpl); |
153 }; | 154 }; |
154 | 155 |
155 } // namespace mojo | 156 } // namespace mojo |
156 | 157 |
157 #endif // MOJO_APPLICATION_PUBLIC_CPP_APPLICATION_IMPL_H_ | 158 #endif // MOJO_APPLICATION_PUBLIC_CPP_APPLICATION_IMPL_H_ |
OLD | NEW |