| 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 { | |
| 17 namespace shell { | 16 namespace shell { |
| 18 | 17 |
| 19 class NativeApplicationLoader; | 18 class NativeApplicationLoader; |
| 20 | 19 |
| 21 // The "global" context for the shell's main process. | 20 // The "global" context for the shell's main process. |
| 22 class Context : public ApplicationManager::Delegate, | 21 class Context : public ApplicationManager::Delegate, |
| 23 public embedder::ProcessDelegate { | 22 public mojo::embedder::ProcessDelegate { |
| 24 public: | 23 public: |
| 25 Context(); | 24 Context(); |
| 26 ~Context() override; | 25 ~Context() override; |
| 27 | 26 |
| 28 static void EnsureEmbedderIsInitialized(); | 27 static void EnsureEmbedderIsInitialized(); |
| 29 | 28 |
| 30 // Point to the directory containing installed services, such as the network | 29 // Point to the directory containing installed services, such as the network |
| 31 // 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 |
| 32 // 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, |
| 33 // even when the base URL for unknown mojo: URLs is overridden. | 32 // even when the base URL for unknown mojo: URLs is overridden. |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 scoped_ptr<TaskRunners> task_runners_; | 91 scoped_ptr<TaskRunners> task_runners_; |
| 93 | 92 |
| 94 std::set<GURL> app_urls_; | 93 std::set<GURL> app_urls_; |
| 95 GURL shell_file_root_; | 94 GURL shell_file_root_; |
| 96 GURL command_line_cwd_; | 95 GURL command_line_cwd_; |
| 97 | 96 |
| 98 DISALLOW_COPY_AND_ASSIGN(Context); | 97 DISALLOW_COPY_AND_ASSIGN(Context); |
| 99 }; | 98 }; |
| 100 | 99 |
| 101 } // namespace shell | 100 } // namespace shell |
| 102 } // namespace mojo | |
| 103 | 101 |
| 104 #endif // SHELL_CONTEXT_H_ | 102 #endif // SHELL_CONTEXT_H_ |
| OLD | NEW |