Revert of Adds back some debugging code (https://codereview.chromium.org/257023002/)
[chromium-blink-merge.git] / mojo / service_manager / service_loader.h
blob42b593e249797f800d306549ac460dadeafbfd38
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"
10 #include "url/gurl.h"
12 namespace mojo {
14 class ServiceManager;
16 // Interface to allowing default loading behavior to be overridden for a
17 // specific url.
18 class MOJO_SERVICE_MANAGER_EXPORT ServiceLoader {
19 public:
20 virtual ~ServiceLoader() {};
21 virtual void LoadService(ServiceManager* manager,
22 const GURL& url,
23 ScopedShellHandle service_handle) = 0;
24 virtual void OnServiceError(ServiceManager* manager, const GURL& url) = 0;
26 protected:
27 ServiceLoader() {}
30 } // namespace mojo
32 #endif // MOJO_SERVICE_MANAGER_SERVICE_LOADER_H_