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_SHELL_VIEW_MANAGER_LOADER_H_ | 5 #ifndef MOJO_SHELL_VIEW_MANAGER_LOADER_H_ |
6 #define MOJO_SHELL_VIEW_MANAGER_LOADER_H_ | 6 #define MOJO_SHELL_VIEW_MANAGER_LOADER_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
10 #include "mojo/public/cpp/application/application_delegate.h" | 10 #include "mojo/public/cpp/application/application_delegate.h" |
11 #include "mojo/public/cpp/application/interface_factory.h" | 11 #include "mojo/public/cpp/application/interface_factory.h" |
12 #include "mojo/service_manager/service_loader.h" | 12 #include "mojo/service_manager/service_loader.h" |
13 #include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h" | 13 #include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h" |
| 14 #include "mojo/services/view_manager/view_manager_init_service_context.h" |
14 | 15 |
15 namespace mojo { | 16 namespace mojo { |
16 | 17 |
17 class Application; | 18 class Application; |
18 | 19 |
19 namespace shell { | 20 namespace shell { |
20 | 21 |
21 // ServiceLoader responsible for creating connections to the ViewManager. | 22 // ServiceLoader responsible for creating connections to the ViewManager. |
22 class ViewManagerLoader | 23 class ViewManagerLoader |
23 : public ServiceLoader, | 24 : public ServiceLoader, |
(...skipping 15 matching lines...) Expand all Loading... |
39 // ApplicationDelegate overrides. | 40 // ApplicationDelegate overrides. |
40 virtual bool ConfigureIncomingConnection( | 41 virtual bool ConfigureIncomingConnection( |
41 mojo::ApplicationConnection* connection) OVERRIDE; | 42 mojo::ApplicationConnection* connection) OVERRIDE; |
42 | 43 |
43 // InterfaceFactory<view_manager::ViewManagerInitService> overrides. | 44 // InterfaceFactory<view_manager::ViewManagerInitService> overrides. |
44 virtual void Create( | 45 virtual void Create( |
45 ApplicationConnection* connection, | 46 ApplicationConnection* connection, |
46 InterfaceRequest<view_manager::ViewManagerInitService> request) OVERRIDE; | 47 InterfaceRequest<view_manager::ViewManagerInitService> request) OVERRIDE; |
47 | 48 |
48 ScopedVector<Application> apps_; | 49 ScopedVector<Application> apps_; |
| 50 view_manager::service::ViewManagerInitServiceContext context_; |
49 | 51 |
50 DISALLOW_COPY_AND_ASSIGN(ViewManagerLoader); | 52 DISALLOW_COPY_AND_ASSIGN(ViewManagerLoader); |
51 }; | 53 }; |
52 | 54 |
53 } // namespace shell | 55 } // namespace shell |
54 } // namespace mojo | 56 } // namespace mojo |
55 | 57 |
56 #endif // MOJO_SHELL_VIEW_MANAGER_LOADER_H_ | 58 #endif // MOJO_SHELL_VIEW_MANAGER_LOADER_H_ |
OLD | NEW |