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 ExternalApplicationListener; | 20 class ExternalApplicationListener; |
21 class NativeApplicationLoader; | 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 : public ApplicationManager::Delegate, |
| 25 public embedder::ProcessDelegate { |
25 public: | 26 public: |
26 Context(); | 27 Context(); |
27 ~Context() override; | 28 ~Context() override; |
28 | 29 |
29 static void EnsureEmbedderIsInitialized(); | 30 static void EnsureEmbedderIsInitialized(); |
30 | 31 |
31 // Point to the directory containing installed services, such as the network | 32 // Point to the directory containing installed services, such as the network |
32 // service. By default this directory is used as the base URL for resolving | 33 // service. By default this directory is used as the base URL for resolving |
33 // unknown mojo: URLs. The network service will be loaded from this directory, | 34 // unknown mojo: URLs. The network service will be loaded from this directory, |
34 // even when the base URL for unknown mojo: URLs is overridden. | 35 // even when the base URL for unknown mojo: URLs is overridden. |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 GURL shell_file_root_; | 83 GURL shell_file_root_; |
83 GURL command_line_cwd_; | 84 GURL command_line_cwd_; |
84 | 85 |
85 DISALLOW_COPY_AND_ASSIGN(Context); | 86 DISALLOW_COPY_AND_ASSIGN(Context); |
86 }; | 87 }; |
87 | 88 |
88 } // namespace shell | 89 } // namespace shell |
89 } // namespace mojo | 90 } // namespace mojo |
90 | 91 |
91 #endif // SHELL_CONTEXT_H_ | 92 #endif // SHELL_CONTEXT_H_ |
OLD | NEW |