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_SERVICE_MANAGER_SERVICE_LOADER_H_ | 5 #ifndef MOJO_SERVICE_MANAGER_SERVICE_LOADER_H_ |
6 #define MOJO_SERVICE_MANAGER_SERVICE_LOADER_H_ | 6 #define MOJO_SERVICE_MANAGER_SERVICE_LOADER_H_ |
7 | 7 |
8 #include "mojo/public/shell/shell.mojom.h" | 8 #include "mojo/public/shell/shell.mojom.h" |
9 #include "mojo/service_manager/service_manager_export.h" | |
10 #include "url/gurl.h" | 9 #include "url/gurl.h" |
11 | 10 |
12 namespace mojo { | 11 namespace mojo { |
13 | 12 |
14 class ServiceManager; | 13 class ServiceManager; |
15 | 14 |
16 // Interface to allowing default loading behavior to be overridden for a | 15 // Interface to allowing default loading behavior to be overridden for a |
17 // specific url. | 16 // specific url. |
18 class MOJO_SERVICE_MANAGER_EXPORT ServiceLoader { | 17 class ServiceLoader { |
19 public: | 18 public: |
20 virtual ~ServiceLoader() {}; | 19 virtual ~ServiceLoader() {}; |
21 virtual void LoadService(ServiceManager* manager, | 20 virtual void LoadService(ServiceManager* manager, |
22 const GURL& url, | 21 const GURL& url, |
23 ScopedShellHandle service_handle) = 0; | 22 ScopedShellHandle service_handle) = 0; |
24 protected: | 23 protected: |
25 ServiceLoader() {} | 24 ServiceLoader() {} |
26 }; | 25 }; |
27 | 26 |
28 } // namespace mojo | 27 } // namespace mojo |
29 | 28 |
30 #endif // MOJO_SERVICE_MANAGER_SERVICE_LOADER_H_ | 29 #endif // MOJO_SERVICE_MANAGER_SERVICE_LOADER_H_ |
OLD | NEW |