| 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 ApplicationImpl; |
| 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( |
| 23 const GURL& url, | 23 const GURL& url, |
| 24 InterfaceRequest<Application> application_request) override; | 24 InterfaceRequest<mojom::Application> application_request) override; |
| 25 | 25 |
| 26 scoped_ptr<ApplicationImpl> app_; | 26 scoped_ptr<ApplicationImpl> app_; |
| 27 | 27 |
| 28 ApplicationManager* manager_; | 28 ApplicationManager* manager_; |
| 29 | 29 |
| 30 DISALLOW_COPY_AND_ASSIGN(ShellApplicationLoader); | 30 DISALLOW_COPY_AND_ASSIGN(ShellApplicationLoader); |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 } // namespace shell | 33 } // namespace shell |
| 34 } // namespace mojo | 34 } // namespace mojo |
| 35 | 35 |
| 36 #endif // MOJO_SHELL_SHELL_APPLICATION_LOADER_H_ | 36 #endif // MOJO_SHELL_SHELL_APPLICATION_LOADER_H_ |
| OLD | NEW |