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

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

Issue 972433004: Use the mojo::shell namespace consistently underly shell/. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Java! Created 5 years, 9 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
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/public/interfaces/application/shell.mojom.h" 10 #include "mojo/public/interfaces/application/shell.mojom.h"
11 #include "mojo/services/network/public/interfaces/url_loader.mojom.h" 11 #include "mojo/services/network/public/interfaces/url_loader.mojom.h"
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 namespace mojo { 14 namespace mojo {
15 15
16 class Application; 16 class Application;
17
18 namespace shell {
19
17 class ApplicationManager; 20 class ApplicationManager;
18 21
19 // Interface to implement special application loading behavior for a particular 22 // Interface to implement special application loading behavior for a particular
20 // URL or scheme. 23 // URL or scheme.
21 class ApplicationLoader { 24 class ApplicationLoader {
22 public: 25 public:
23 virtual ~ApplicationLoader() {} 26 virtual ~ApplicationLoader() {}
24 27
25 virtual void Load(const GURL& url, 28 virtual void Load(const GURL& url,
26 InterfaceRequest<Application> application_request) = 0; 29 InterfaceRequest<Application> application_request) = 0;
27 30
28 protected: 31 protected:
29 ApplicationLoader() {} 32 ApplicationLoader() {}
30 }; 33 };
31 34
35 } // namespace shell
32 } // namespace mojo 36 } // namespace mojo
33 37
34 #endif // SHELL_APPLICATION_MANAGER_APPLICATION_LOADER_H_ 38 #endif // SHELL_APPLICATION_MANAGER_APPLICATION_LOADER_H_
OLDNEW
« no previous file with comments | « shell/android/ui_application_loader_android.cc ('k') | shell/application_manager/application_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698