Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: chrome/test/automation/proxy_launcher.h

Issue 7074025: Get rid of content dependency from sandbox_policy.h (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix crash Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_TEST_AUTOMATION_PROXY_LAUNCHER_H_ 5 #ifndef CHROME_TEST_AUTOMATION_PROXY_LAUNCHER_H_
6 #define CHROME_TEST_AUTOMATION_PROXY_LAUNCHER_H_ 6 #define CHROME_TEST_AUTOMATION_PROXY_LAUNCHER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 static void set_silent_dump_on_dcheck(bool value) { 169 static void set_silent_dump_on_dcheck(bool value) {
170 silent_dump_on_dcheck_ = value; 170 silent_dump_on_dcheck_ = value;
171 } 171 }
172 172
173 // Get/Set a flag to disable breakpad handling. 173 // Get/Set a flag to disable breakpad handling.
174 static bool disable_breakpad() { return disable_breakpad_; } 174 static bool disable_breakpad() { return disable_breakpad_; }
175 static void set_disable_breakpad(bool value) { 175 static void set_disable_breakpad(bool value) {
176 disable_breakpad_ = value; 176 disable_breakpad_ = value;
177 } 177 }
178 178
179 // Get/Set a flag to run the plugin processes inside the sandbox when running
180 // the tests
181 static bool safe_plugins() { return safe_plugins_; }
182 static void set_safe_plugins(bool value) {
183 safe_plugins_ = value;
184 }
185
186 static bool show_error_dialogs() { return show_error_dialogs_; } 179 static bool show_error_dialogs() { return show_error_dialogs_; }
187 static void set_show_error_dialogs(bool value) { 180 static void set_show_error_dialogs(bool value) {
188 show_error_dialogs_ = value; 181 show_error_dialogs_ = value;
189 } 182 }
190 183
191 static bool full_memory_dump() { return full_memory_dump_; } 184 static bool full_memory_dump() { return full_memory_dump_; }
192 static void set_full_memory_dump(bool value) { 185 static void set_full_memory_dump(bool value) {
193 full_memory_dump_ = value; 186 full_memory_dump_ = value;
194 } 187 }
195 188
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 249
257 // The method for shutting down the browser. Used in ShutdownTest. 250 // The method for shutting down the browser. Used in ShutdownTest.
258 ShutdownType shutdown_type_; 251 ShutdownType shutdown_type_;
259 252
260 // True if we're in single process mode. 253 // True if we're in single process mode.
261 static bool in_process_renderer_; 254 static bool in_process_renderer_;
262 255
263 // If true, runs the renderer outside the sandbox. 256 // If true, runs the renderer outside the sandbox.
264 static bool no_sandbox_; 257 static bool no_sandbox_;
265 258
266 // If true, runs plugin processes inside the sandbox.
267 static bool safe_plugins_;
268
269 // If true, write full memory dump during crash. 259 // If true, write full memory dump during crash.
270 static bool full_memory_dump_; 260 static bool full_memory_dump_;
271 261
272 // If true, a user is paying attention to the test, so show error dialogs. 262 // If true, a user is paying attention to the test, so show error dialogs.
273 static bool show_error_dialogs_; 263 static bool show_error_dialogs_;
274 264
275 // Include histograms in log on exit. 265 // Include histograms in log on exit.
276 static bool dump_histograms_on_exit_; 266 static bool dump_histograms_on_exit_;
277 267
278 // Enable dchecks in release mode. 268 // Enable dchecks in release mode.
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 321
332 protected: 322 protected:
333 std::string channel_id_; // Channel id of automation proxy. 323 std::string channel_id_; // Channel id of automation proxy.
334 bool disconnect_on_failure_; // True if we disconnect on IPC channel failure. 324 bool disconnect_on_failure_; // True if we disconnect on IPC channel failure.
335 325
336 private: 326 private:
337 DISALLOW_COPY_AND_ASSIGN(AnonymousProxyLauncher); 327 DISALLOW_COPY_AND_ASSIGN(AnonymousProxyLauncher);
338 }; 328 };
339 329
340 #endif // CHROME_TEST_AUTOMATION_PROXY_LAUNCHER_H_ 330 #endif // CHROME_TEST_AUTOMATION_PROXY_LAUNCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698