| 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" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 void Run(const GURL& url); | 56 void Run(const GURL& url); |
| 57 | 57 |
| 58 TaskRunners* task_runners() { return task_runners_.get(); } | 58 TaskRunners* task_runners() { return task_runners_.get(); } |
| 59 ApplicationManager* application_manager() { return &application_manager_; } | 59 ApplicationManager* application_manager() { return &application_manager_; } |
| 60 URLResolver* url_resolver() { return &url_resolver_; } | 60 URLResolver* url_resolver() { return &url_resolver_; } |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 class NativeViewportApplicationLoader; | 63 class NativeViewportApplicationLoader; |
| 64 | 64 |
| 65 // ApplicationManager::Delegate overrides. | 65 // ApplicationManager::Delegate overrides. |
| 66 GURL ResolveURL(const GURL& url) override; | |
| 67 GURL ResolveMappings(const GURL& url) override; | 66 GURL ResolveMappings(const GURL& url) override; |
| 67 GURL ResolveMojoURL(const GURL& url) override; |
| 68 | 68 |
| 69 // ProcessDelegate implementation. | 69 // ProcessDelegate implementation. |
| 70 void OnShutdownComplete() override; | 70 void OnShutdownComplete() override; |
| 71 | 71 |
| 72 void OnApplicationEnd(const GURL& url); | 72 void OnApplicationEnd(const GURL& url); |
| 73 | 73 |
| 74 std::set<GURL> app_urls_; | 74 std::set<GURL> app_urls_; |
| 75 scoped_ptr<TaskRunners> task_runners_; | 75 scoped_ptr<TaskRunners> task_runners_; |
| 76 ApplicationManager application_manager_; | 76 ApplicationManager application_manager_; |
| 77 URLResolver url_resolver_; | 77 URLResolver url_resolver_; |
| 78 GURL shell_file_root_; | 78 GURL shell_file_root_; |
| 79 GURL command_line_cwd_; | 79 GURL command_line_cwd_; |
| 80 | 80 |
| 81 DISALLOW_COPY_AND_ASSIGN(Context); | 81 DISALLOW_COPY_AND_ASSIGN(Context); |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 } // namespace shell | 84 } // namespace shell |
| 85 } // namespace mojo | 85 } // namespace mojo |
| 86 | 86 |
| 87 #endif // SHELL_CONTEXT_H_ | 87 #endif // SHELL_CONTEXT_H_ |
| OLD | NEW |