OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_BROWSER_UTILITY_PROCESS_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_UTILITY_PROCESS_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_UTILITY_PROCESS_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_UTILITY_PROCESS_HOST_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 base::FilePath exposed_dir_; | 70 base::FilePath exposed_dir_; |
71 | 71 |
72 // Whether the utility process needs to perform presandbox initialization | 72 // Whether the utility process needs to perform presandbox initialization |
73 // for mDNS. | 73 // for mDNS. |
74 bool is_mdns_enabled_; | 74 bool is_mdns_enabled_; |
75 | 75 |
76 // Whether to pass switches::kNoSandbox to the child. | 76 // Whether to pass switches::kNoSandbox to the child. |
77 bool no_sandbox_; | 77 bool no_sandbox_; |
78 | 78 |
79 #if defined(OS_WIN) | |
80 // Whether to launch the process with elevated privileges. | 79 // Whether to launch the process with elevated privileges. |
81 bool run_elevated_; | 80 bool run_elevated_; |
82 #endif | |
83 | 81 |
84 // Flags defined in ChildProcessHost with which to start the process. | 82 // Flags defined in ChildProcessHost with which to start the process. |
85 int child_flags_; | 83 int child_flags_; |
86 | 84 |
87 base::EnvironmentMap env_; | 85 base::EnvironmentMap env_; |
88 | 86 |
89 bool started_; | 87 bool started_; |
90 | 88 |
91 scoped_ptr<BrowserChildProcessHostImpl> process_; | 89 scoped_ptr<BrowserChildProcessHostImpl> process_; |
92 | 90 |
93 // Used in single-process mode instead of process_. | 91 // Used in single-process mode instead of process_. |
94 scoped_ptr<base::Thread> in_process_thread_; | 92 scoped_ptr<base::Thread> in_process_thread_; |
95 | 93 |
96 DISALLOW_COPY_AND_ASSIGN(UtilityProcessHostImpl); | 94 DISALLOW_COPY_AND_ASSIGN(UtilityProcessHostImpl); |
97 }; | 95 }; |
98 | 96 |
99 } // namespace content | 97 } // namespace content |
100 | 98 |
101 #endif // CONTENT_BROWSER_UTILITY_PROCESS_HOST_IMPL_H_ | 99 #endif // CONTENT_BROWSER_UTILITY_PROCESS_HOST_IMPL_H_ |
OLD | NEW |