Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Side by Side Diff: mojo/service_manager/service_loader.h

Issue 219583003: Mojo: Move mojo/public/shell to mojo/public/{cpp,interfaces}/shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « mojo/public/shell/shell.mojom ('k') | mojo/service_manager/service_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/interfaces/shell/shell.mojom.h"
9 #include "mojo/service_manager/service_manager_export.h" 9 #include "mojo/service_manager/service_manager_export.h"
10 #include "url/gurl.h" 10 #include "url/gurl.h"
11 11
12 namespace mojo { 12 namespace mojo {
13 13
14 class ServiceManager; 14 class ServiceManager;
15 15
16 // Interface to allowing default loading behavior to be overridden for a 16 // Interface to allowing default loading behavior to be overridden for a
17 // specific url. 17 // specific url.
18 class MOJO_SERVICE_MANAGER_EXPORT ServiceLoader { 18 class MOJO_SERVICE_MANAGER_EXPORT ServiceLoader {
19 public: 19 public:
20 virtual ~ServiceLoader() {}; 20 virtual ~ServiceLoader() {};
21 virtual void LoadService(ServiceManager* manager, 21 virtual void LoadService(ServiceManager* manager,
22 const GURL& url, 22 const GURL& url,
23 ScopedShellHandle service_handle) = 0; 23 ScopedShellHandle service_handle) = 0;
24 virtual void OnServiceError(ServiceManager* manager, const GURL& url) = 0; 24 virtual void OnServiceError(ServiceManager* manager, const GURL& url) = 0;
25 25
26 protected: 26 protected:
27 ServiceLoader() {} 27 ServiceLoader() {}
28 }; 28 };
29 29
30 } // namespace mojo 30 } // namespace mojo
31 31
32 #endif // MOJO_SERVICE_MANAGER_SERVICE_LOADER_H_ 32 #endif // MOJO_SERVICE_MANAGER_SERVICE_LOADER_H_
OLDNEW
« no previous file with comments | « mojo/public/shell/shell.mojom ('k') | mojo/service_manager/service_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698