OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_SHELL_SHELL_APPLICATION_LOADER_H_ | 5 #ifndef MOJO_SHELL_SHELL_APPLICATION_LOADER_H_ |
6 #define MOJO_SHELL_SHELL_APPLICATION_LOADER_H_ | 6 #define MOJO_SHELL_SHELL_APPLICATION_LOADER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "mojo/shell/application_loader.h" | 9 #include "mojo/shell/application_loader.h" |
10 | 10 |
11 namespace mojo { | 11 namespace mojo { |
12 class ApplicationImpl; | 12 class ShellConnection; |
13 namespace shell { | 13 namespace shell { |
14 | 14 |
15 class ShellApplicationLoader : public ApplicationLoader { | 15 class ShellApplicationLoader : public ApplicationLoader { |
16 public: | 16 public: |
17 explicit ShellApplicationLoader(ApplicationManager* manager); | 17 explicit ShellApplicationLoader(ApplicationManager* manager); |
18 ~ShellApplicationLoader() override; | 18 ~ShellApplicationLoader() override; |
19 | 19 |
20 private: | 20 private: |
21 // Overridden from ApplicationLoader: | 21 // Overridden from ApplicationLoader: |
22 void Load( | 22 void Load(const GURL& url, |
23 const GURL& url, | 23 InterfaceRequest<mojom::ShellClient> request) override; |
24 InterfaceRequest<mojom::Application> application_request) override; | |
25 | 24 |
26 scoped_ptr<ApplicationImpl> app_; | 25 scoped_ptr<ShellConnection> shell_connection_; |
27 | 26 |
28 ApplicationManager* manager_; | 27 ApplicationManager* manager_; |
29 | 28 |
30 DISALLOW_COPY_AND_ASSIGN(ShellApplicationLoader); | 29 DISALLOW_COPY_AND_ASSIGN(ShellApplicationLoader); |
31 }; | 30 }; |
32 | 31 |
33 } // namespace shell | 32 } // namespace shell |
34 } // namespace mojo | 33 } // namespace mojo |
35 | 34 |
36 #endif // MOJO_SHELL_SHELL_APPLICATION_LOADER_H_ | 35 #endif // MOJO_SHELL_SHELL_APPLICATION_LOADER_H_ |
OLD | NEW |