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

Side by Side Diff: mojo/shell/application_loader.h

Issue 1679573002: Move shell interfaces into the shell.mojom namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@delegate
Patch Set: . Created 4 years, 10 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
« no previous file with comments | « mojo/shell/application_instance.cc ('k') | mojo/shell/application_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 SHELL_APPLICATION_MANAGER_APPLICATION_LOADER_H_ 5 #ifndef SHELL_APPLICATION_MANAGER_APPLICATION_LOADER_H_
6 #define SHELL_APPLICATION_MANAGER_APPLICATION_LOADER_H_ 6 #define SHELL_APPLICATION_MANAGER_APPLICATION_LOADER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "mojo/public/cpp/system/core.h" 9 #include "mojo/public/cpp/system/core.h"
10 #include "mojo/services/network/public/interfaces/url_loader.mojom.h" 10 #include "mojo/services/network/public/interfaces/url_loader.mojom.h"
11 #include "mojo/shell/public/interfaces/application.mojom.h"
11 #include "mojo/shell/public/interfaces/shell.mojom.h" 12 #include "mojo/shell/public/interfaces/shell.mojom.h"
12 #include "url/gurl.h" 13 #include "url/gurl.h"
13 14
14 namespace mojo { 15 namespace mojo {
15 16
16 class Application; 17 class Application;
17 18
18 namespace shell { 19 namespace shell {
19 20
20 class ApplicationManager; 21 class ApplicationManager;
21 22
22 // Interface to implement special application loading behavior for a particular 23 // Interface to implement special application loading behavior for a particular
23 // URL or scheme. 24 // URL or scheme.
24 class ApplicationLoader { 25 class ApplicationLoader {
25 public: 26 public:
26 virtual ~ApplicationLoader() {} 27 virtual ~ApplicationLoader() {}
27 28
28 virtual void Load(const GURL& url, 29 virtual void Load(
29 InterfaceRequest<Application> application_request) = 0; 30 const GURL& url,
31 InterfaceRequest<mojom::Application> application_request) = 0;
30 32
31 protected: 33 protected:
32 ApplicationLoader() {} 34 ApplicationLoader() {}
33 }; 35 };
34 36
35 } // namespace shell 37 } // namespace shell
36 } // namespace mojo 38 } // namespace mojo
37 39
38 #endif // SHELL_APPLICATION_MANAGER_APPLICATION_LOADER_H_ 40 #endif // SHELL_APPLICATION_MANAGER_APPLICATION_LOADER_H_
OLDNEW
« no previous file with comments | « mojo/shell/application_instance.cc ('k') | mojo/shell/application_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698