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