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
3 // found in the LICENSE file.
5 #ifndef MOJO_SERVICE_MANAGER_SERVICE_LOADER_H_
6 #define MOJO_SERVICE_MANAGER_SERVICE_LOADER_H_
8 #include "mojo/public/interfaces/shell/shell.mojom.h"
9 #include "mojo/service_manager/service_manager_export.h"
16 // Interface to allowing default loading behavior to be overridden for a
18 class MOJO_SERVICE_MANAGER_EXPORT ServiceLoader
{
20 virtual ~ServiceLoader() {};
21 virtual void LoadService(ServiceManager
* manager
,
23 ScopedShellHandle service_handle
) = 0;
24 virtual void OnServiceError(ServiceManager
* manager
, const GURL
& url
) = 0;
32 #endif // MOJO_SERVICE_MANAGER_SERVICE_LOADER_H_