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