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/service_manager/service_loader.h" | 10 #include "mojo/service_manager/service_loader.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 namespace shell { | 21 namespace shell { |
22 | 22 |
23 // ServiceLoader responsible for creating connections to the ViewManager. | 23 // ServiceLoader responsible for creating connections to the ViewManager. |
24 class ViewManagerLoader : public ServiceLoader { | 24 class ViewManagerLoader : public ServiceLoader { |
25 public: | 25 public: |
26 ViewManagerLoader(); | 26 ViewManagerLoader(); |
27 virtual ~ViewManagerLoader(); | 27 virtual ~ViewManagerLoader(); |
28 | 28 |
29 private: | 29 private: |
30 // ServiceLoader overrides: | 30 // ServiceLoader overrides: |
31 virtual void LoadService( | 31 virtual void LoadService(ServiceManager* manager, |
32 ServiceManager* manager, | 32 const GURL& url, |
33 const GURL& url, | 33 ScopedMessagePipeHandle shell_handle) OVERRIDE; |
34 ScopedMessagePipeHandle service_provider_handle) OVERRIDE; | |
35 virtual void OnServiceError(ServiceManager* manager, | 34 virtual void OnServiceError(ServiceManager* manager, |
36 const GURL& url) OVERRIDE; | 35 const GURL& url) OVERRIDE; |
37 | 36 |
38 scoped_ptr<view_manager::service::RootNodeManager> root_node_manager_; | 37 scoped_ptr<view_manager::service::RootNodeManager> root_node_manager_; |
39 ScopedVector<Application> apps_; | 38 ScopedVector<Application> apps_; |
40 | 39 |
41 DISALLOW_COPY_AND_ASSIGN(ViewManagerLoader); | 40 DISALLOW_COPY_AND_ASSIGN(ViewManagerLoader); |
42 }; | 41 }; |
43 | 42 |
44 } // namespace shell | 43 } // namespace shell |
45 } // namespace mojo | 44 } // namespace mojo |
46 | 45 |
47 #endif // MOJO_SHELL_VIEW_MANAGER_LOADER_H_ | 46 #endif // MOJO_SHELL_VIEW_MANAGER_LOADER_H_ |
OLD | NEW |