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" |
(...skipping 12 matching lines...) Expand all Loading... |
23 class ViewManagerLoader | 23 class ViewManagerLoader |
24 : public ServiceLoader, | 24 : public ServiceLoader, |
25 public ApplicationDelegate, | 25 public ApplicationDelegate, |
26 public InterfaceFactory<ViewManagerInitService> { | 26 public InterfaceFactory<ViewManagerInitService> { |
27 public: | 27 public: |
28 ViewManagerLoader(); | 28 ViewManagerLoader(); |
29 virtual ~ViewManagerLoader(); | 29 virtual ~ViewManagerLoader(); |
30 | 30 |
31 private: | 31 private: |
32 // ServiceLoader overrides: | 32 // ServiceLoader overrides: |
33 virtual void LoadService( | 33 virtual void Load(ServiceManager* manager, |
34 ServiceManager* manager, | 34 const GURL& url, |
35 const GURL& url, | 35 scoped_refptr<LoadCallbacks> callbacks) OVERRIDE; |
36 ScopedMessagePipeHandle shell_handle) OVERRIDE; | |
37 virtual void OnServiceError(ServiceManager* manager, | 36 virtual void OnServiceError(ServiceManager* manager, |
38 const GURL& url) OVERRIDE; | 37 const GURL& url) OVERRIDE; |
39 | 38 |
40 // ApplicationDelegate overrides. | 39 // ApplicationDelegate overrides. |
41 virtual bool ConfigureIncomingConnection( | 40 virtual bool ConfigureIncomingConnection( |
42 mojo::ApplicationConnection* connection) OVERRIDE; | 41 mojo::ApplicationConnection* connection) OVERRIDE; |
43 | 42 |
44 // InterfaceFactory<ViewManagerInitService> overrides. | 43 // InterfaceFactory<ViewManagerInitService> overrides. |
45 virtual void Create( | 44 virtual void Create( |
46 ApplicationConnection* connection, | 45 ApplicationConnection* connection, |
47 InterfaceRequest<ViewManagerInitService> request) OVERRIDE; | 46 InterfaceRequest<ViewManagerInitService> request) OVERRIDE; |
48 | 47 |
49 ScopedVector<Application> apps_; | 48 ScopedVector<Application> apps_; |
50 service::ViewManagerInitServiceContext context_; | 49 service::ViewManagerInitServiceContext context_; |
51 | 50 |
52 DISALLOW_COPY_AND_ASSIGN(ViewManagerLoader); | 51 DISALLOW_COPY_AND_ASSIGN(ViewManagerLoader); |
53 }; | 52 }; |
54 | 53 |
55 } // namespace shell | 54 } // namespace shell |
56 } // namespace mojo | 55 } // namespace mojo |
57 | 56 |
58 #endif // MOJO_SHELL_VIEW_MANAGER_LOADER_H_ | 57 #endif // MOJO_SHELL_VIEW_MANAGER_LOADER_H_ |
OLD | NEW |