| 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/cpp/system/core.h" | 8 #include "mojo/public/cpp/system/core.h" |
| 9 #include "mojo/public/interfaces/service_provider/service_provider.mojom.h" | |
| 10 #include "mojo/service_manager/service_manager_export.h" | 9 #include "mojo/service_manager/service_manager_export.h" |
| 11 #include "url/gurl.h" | 10 #include "url/gurl.h" |
| 12 | 11 |
| 13 namespace mojo { | 12 namespace mojo { |
| 14 | 13 |
| 15 class ServiceManager; | 14 class ServiceManager; |
| 16 | 15 |
| 17 // Interface to allowing loading behavior to be established for schemes, | 16 // Interface to allowing loading behavior to be established for schemes, |
| 18 // specific urls or as the default. | 17 // specific urls or as the default. |
| 19 // A ServiceLoader is responsible to using whatever mechanism is appropriate | 18 // A ServiceLoader is responsible to using whatever mechanism is appropriate |
| (...skipping 10 matching lines...) Expand all Loading... |
| 30 ScopedMessagePipeHandle shell_handle) = 0; | 29 ScopedMessagePipeHandle shell_handle) = 0; |
| 31 virtual void OnServiceError(ServiceManager* manager, const GURL& url) = 0; | 30 virtual void OnServiceError(ServiceManager* manager, const GURL& url) = 0; |
| 32 | 31 |
| 33 protected: | 32 protected: |
| 34 ServiceLoader() {} | 33 ServiceLoader() {} |
| 35 }; | 34 }; |
| 36 | 35 |
| 37 } // namespace mojo | 36 } // namespace mojo |
| 38 | 37 |
| 39 #endif // MOJO_SERVICE_MANAGER_SERVICE_LOADER_H_ | 38 #endif // MOJO_SERVICE_MANAGER_SERVICE_LOADER_H_ |
| OLD | NEW |