| 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 MOJO_RUNNER_CONTEXT_H_ | 5 #ifndef MOJO_RUNNER_CONTEXT_H_ |
| 6 #define MOJO_RUNNER_CONTEXT_H_ | 6 #define MOJO_RUNNER_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 "mojo/runner/scoped_user_data_dir.h" | |
| 13 #include "mojo/runner/task_runners.h" | 12 #include "mojo/runner/task_runners.h" |
| 14 #include "mojo/runner/url_resolver.h" | 13 #include "mojo/runner/url_resolver.h" |
| 15 #include "mojo/shell/application_manager.h" | 14 #include "mojo/shell/application_manager.h" |
| 16 | 15 |
| 17 namespace mojo { | 16 namespace mojo { |
| 18 namespace runner { | 17 namespace runner { |
| 19 | 18 |
| 20 class NativeApplicationLoader; | 19 class NativeApplicationLoader; |
| 21 | 20 |
| 22 // The "global" context for the shell's main process. | 21 // The "global" context for the shell's main process. |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 GURL ResolveMojoURL(const GURL& url) override; | 72 GURL ResolveMojoURL(const GURL& url) override; |
| 74 bool CreateFetcher( | 73 bool CreateFetcher( |
| 75 const GURL& url, | 74 const GURL& url, |
| 76 const shell::Fetcher::FetchCallback& loader_callback) override; | 75 const shell::Fetcher::FetchCallback& loader_callback) override; |
| 77 | 76 |
| 78 // ProcessDelegate implementation. | 77 // ProcessDelegate implementation. |
| 79 void OnShutdownComplete() override; | 78 void OnShutdownComplete() override; |
| 80 | 79 |
| 81 void OnApplicationEnd(const GURL& url); | 80 void OnApplicationEnd(const GURL& url); |
| 82 | 81 |
| 83 ScopedUserDataDir scoped_user_data_dir; | |
| 84 std::set<GURL> app_urls_; | 82 std::set<GURL> app_urls_; |
| 85 scoped_ptr<TaskRunners> task_runners_; | 83 scoped_ptr<TaskRunners> task_runners_; |
| 86 shell::ApplicationManager application_manager_; | 84 shell::ApplicationManager application_manager_; |
| 87 URLResolver url_resolver_; | 85 URLResolver url_resolver_; |
| 88 GURL shell_file_root_; | 86 GURL shell_file_root_; |
| 89 GURL command_line_cwd_; | 87 GURL command_line_cwd_; |
| 90 | 88 |
| 91 DISALLOW_COPY_AND_ASSIGN(Context); | 89 DISALLOW_COPY_AND_ASSIGN(Context); |
| 92 }; | 90 }; |
| 93 | 91 |
| 94 } // namespace runner | 92 } // namespace runner |
| 95 } // namespace mojo | 93 } // namespace mojo |
| 96 | 94 |
| 97 #endif // MOJO_RUNNER_CONTEXT_H_ | 95 #endif // MOJO_RUNNER_CONTEXT_H_ |
| OLD | NEW |