OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_CONTEXT_H_ | 5 #ifndef SHELL_CONTEXT_H_ |
6 #define SHELL_CONTEXT_H_ | 6 #define SHELL_CONTEXT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "mojo/edk/embedder/process_delegate.h" | 11 #include "mojo/edk/embedder/process_delegate.h" |
12 #include "shell/application_manager/application_manager.h" | 12 #include "shell/application_manager/application_manager.h" |
13 #include "shell/task_runners.h" | 13 #include "shell/task_runners.h" |
14 #include "shell/url_resolver.h" | 14 #include "shell/url_resolver.h" |
15 | 15 |
16 namespace mojo { | 16 namespace mojo { |
17 | 17 |
18 namespace shell { | 18 namespace shell { |
19 | 19 |
20 class DynamicApplicationLoader; | |
21 class ExternalApplicationListener; | 20 class ExternalApplicationListener; |
| 21 class NativeApplicationLoader; |
22 | 22 |
23 // The "global" context for the shell's main process. | 23 // The "global" context for the shell's main process. |
24 class Context : ApplicationManager::Delegate, embedder::ProcessDelegate { | 24 class Context : ApplicationManager::Delegate, embedder::ProcessDelegate { |
25 public: | 25 public: |
26 Context(); | 26 Context(); |
27 ~Context() override; | 27 ~Context() override; |
28 | 28 |
29 // Point to the directory containing installed services, such as the network | 29 // Point to the directory containing installed services, such as the network |
30 // service. By default this directory is used as the base URL for resolving | 30 // service. By default this directory is used as the base URL for resolving |
31 // unknown mojo: URLs. The network service will be loaded from this directory, | 31 // unknown mojo: URLs. The network service will be loaded from this directory, |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 GURL shell_file_root_; | 77 GURL shell_file_root_; |
78 GURL command_line_cwd_; | 78 GURL command_line_cwd_; |
79 | 79 |
80 DISALLOW_COPY_AND_ASSIGN(Context); | 80 DISALLOW_COPY_AND_ASSIGN(Context); |
81 }; | 81 }; |
82 | 82 |
83 } // namespace shell | 83 } // namespace shell |
84 } // namespace mojo | 84 } // namespace mojo |
85 | 85 |
86 #endif // SHELL_CONTEXT_H_ | 86 #endif // SHELL_CONTEXT_H_ |
OLD | NEW |