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" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 return &application_manager_; | 60 return &application_manager_; |
61 } | 61 } |
62 URLResolver* url_resolver() { return &url_resolver_; } | 62 URLResolver* url_resolver() { return &url_resolver_; } |
63 | 63 |
64 private: | 64 private: |
65 class NativeViewportApplicationLoader; | 65 class NativeViewportApplicationLoader; |
66 | 66 |
67 // ApplicationManager::Delegate overrides. | 67 // ApplicationManager::Delegate overrides. |
68 GURL ResolveMappings(const GURL& url) override; | 68 GURL ResolveMappings(const GURL& url) override; |
69 GURL ResolveMojoURL(const GURL& url) override; | 69 GURL ResolveMojoURL(const GURL& url) override; |
| 70 bool CreateFetcher( |
| 71 const GURL& url, |
| 72 const shell::Fetcher::FetchCallback& loader_callback) override; |
70 | 73 |
71 // ProcessDelegate implementation. | 74 // ProcessDelegate implementation. |
72 void OnShutdownComplete() override; | 75 void OnShutdownComplete() override; |
73 | 76 |
74 void OnApplicationEnd(const GURL& url); | 77 void OnApplicationEnd(const GURL& url); |
75 | 78 |
76 std::set<GURL> app_urls_; | 79 std::set<GURL> app_urls_; |
77 scoped_ptr<TaskRunners> task_runners_; | 80 scoped_ptr<TaskRunners> task_runners_; |
78 shell::ApplicationManager application_manager_; | 81 shell::ApplicationManager application_manager_; |
79 URLResolver url_resolver_; | 82 URLResolver url_resolver_; |
80 GURL shell_file_root_; | 83 GURL shell_file_root_; |
81 GURL command_line_cwd_; | 84 GURL command_line_cwd_; |
82 | 85 |
83 DISALLOW_COPY_AND_ASSIGN(Context); | 86 DISALLOW_COPY_AND_ASSIGN(Context); |
84 }; | 87 }; |
85 | 88 |
86 } // namespace runner | 89 } // namespace runner |
87 } // namespace mojo | 90 } // namespace mojo |
88 | 91 |
89 #endif // MOJO_RUNNER_CONTEXT_H_ | 92 #endif // MOJO_RUNNER_CONTEXT_H_ |
OLD | NEW |