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" | |
19 #include "mojo/public/cpp/bindings/callback.h" | 18 #include "mojo/public/cpp/bindings/callback.h" |
20 #include "mojo/public/cpp/system/core.h" | 19 #include "mojo/public/cpp/system/core.h" |
21 | 20 |
22 namespace mojo { | 21 namespace mojo { |
23 | 22 |
24 // TODO(beng): This comment is hilariously out of date. | 23 // TODO(beng): This comment is hilariously out of date. |
25 // Utility class for communicating with the Shell, and providing Services | 24 // Utility class for communicating with the Shell, and providing Services |
26 // to clients. | 25 // to clients. |
27 // | 26 // |
28 // To use define a class that implements your specific server api, e.g. FooImpl | 27 // 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... |
149 AppLifetimeHelper app_lifetime_helper_; | 148 AppLifetimeHelper app_lifetime_helper_; |
150 bool quit_requested_; | 149 bool quit_requested_; |
151 base::WeakPtrFactory<ApplicationImpl> weak_factory_; | 150 base::WeakPtrFactory<ApplicationImpl> weak_factory_; |
152 | 151 |
153 MOJO_DISALLOW_COPY_AND_ASSIGN(ApplicationImpl); | 152 MOJO_DISALLOW_COPY_AND_ASSIGN(ApplicationImpl); |
154 }; | 153 }; |
155 | 154 |
156 } // namespace mojo | 155 } // namespace mojo |
157 | 156 |
158 #endif // MOJO_APPLICATION_PUBLIC_CPP_APPLICATION_IMPL_H_ | 157 #endif // MOJO_APPLICATION_PUBLIC_CPP_APPLICATION_IMPL_H_ |
OLD | NEW |