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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
57 void Run(const GURL& url); | 57 void Run(const GURL& url); |
58 | 58 |
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 // Available after Init(): | 62 // Available after Init(): |
63 // This is an absolute path. | 63 // This is an absolute path. |
64 const base::FilePath& mojo_shell_child_path() const { | 64 const base::FilePath& mojo_shell_child_path() const { |
65 return mojo_shell_child_path_; | 65 return mojo_shell_child_path_; |
66 } | 66 } |
67 | |
68 const base::FilePath& mojo_shell_child_path_32_bit() const { | |
69 return mojo_shell_child_path_32_bit_; | |
70 } | |
71 | |
67 TaskRunners* task_runners() { return task_runners_.get(); } | 72 TaskRunners* task_runners() { return task_runners_.get(); } |
68 | 73 |
69 private: | 74 private: |
70 class NativeViewportApplicationLoader; | 75 class NativeViewportApplicationLoader; |
71 | 76 |
72 // ApplicationManager::Delegate overrides. | 77 // ApplicationManager::Delegate overrides. |
73 GURL ResolveMappings(const GURL& url) override; | 78 GURL ResolveMappings(const GURL& url) override; |
74 GURL ResolveMojoURL(const GURL& url) override; | 79 GURL ResolveMojoURL(const GURL& url) override; |
75 | 80 |
76 // MasterProcessDelegate implementation. | 81 // MasterProcessDelegate implementation. |
77 void OnShutdownComplete() override; | 82 void OnShutdownComplete() override; |
78 void OnSlaveDisconnect(mojo::embedder::SlaveInfo slave_info) override; | 83 void OnSlaveDisconnect(mojo::embedder::SlaveInfo slave_info) override; |
79 | 84 |
80 void OnApplicationEnd(const GURL& url); | 85 void OnApplicationEnd(const GURL& url); |
81 | 86 |
82 Tracer* const tracer_; | 87 Tracer* const tracer_; |
83 ApplicationManager application_manager_; | 88 ApplicationManager application_manager_; |
84 URLResolver url_resolver_; | 89 URLResolver url_resolver_; |
85 | 90 |
86 base::FilePath mojo_shell_child_path_; | 91 base::FilePath mojo_shell_child_path_; |
92 base::FilePath mojo_shell_child_path_32_bit_; | |
Petr Hosek
2015/09/14 19:13:52
Do you really need a separate variable for the 32-
Sean Klein
2015/09/15 18:37:50
Done.
| |
87 scoped_ptr<TaskRunners> task_runners_; | 93 scoped_ptr<TaskRunners> task_runners_; |
88 | 94 |
89 std::set<GURL> app_urls_; | 95 std::set<GURL> app_urls_; |
90 GURL shell_file_root_; | 96 GURL shell_file_root_; |
91 GURL command_line_cwd_; | 97 GURL command_line_cwd_; |
92 | 98 |
93 DISALLOW_COPY_AND_ASSIGN(Context); | 99 DISALLOW_COPY_AND_ASSIGN(Context); |
94 }; | 100 }; |
95 | 101 |
96 } // namespace shell | 102 } // namespace shell |
97 | 103 |
98 #endif // SHELL_CONTEXT_H_ | 104 #endif // SHELL_CONTEXT_H_ |
OLD | NEW |