| OLD | NEW |
| 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" |
| 11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/memory/scoped_temp_dir.h" | |
| 15 #include "base/process.h" | 14 #include "base/process.h" |
| 15 #include "base/scoped_temp_dir.h" |
| 16 #include "base/time.h" | 16 #include "base/time.h" |
| 17 | 17 |
| 18 class AutomationProxy; | 18 class AutomationProxy; |
| 19 | 19 |
| 20 // Base class for all ProxyLauncher implementations. Contains functionality | 20 // Base class for all ProxyLauncher implementations. Contains functionality |
| 21 // fo launching, terminating, and connecting tests to browser processes. This | 21 // fo launching, terminating, and connecting tests to browser processes. This |
| 22 // class determines which AutomationProxy implementation is used by a test. | 22 // class determines which AutomationProxy implementation is used by a test. |
| 23 // Command line arguments passed to the browser are set in this class. | 23 // Command line arguments passed to the browser are set in this class. |
| 24 // | 24 // |
| 25 // Subclass from this class to use a different AutomationProxy | 25 // Subclass from this class to use a different AutomationProxy |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 | 331 |
| 332 protected: | 332 protected: |
| 333 std::string channel_id_; // Channel id of automation proxy. | 333 std::string channel_id_; // Channel id of automation proxy. |
| 334 bool disconnect_on_failure_; // True if we disconnect on IPC channel failure. | 334 bool disconnect_on_failure_; // True if we disconnect on IPC channel failure. |
| 335 | 335 |
| 336 private: | 336 private: |
| 337 DISALLOW_COPY_AND_ASSIGN(AnonymousProxyLauncher); | 337 DISALLOW_COPY_AND_ASSIGN(AnonymousProxyLauncher); |
| 338 }; | 338 }; |
| 339 | 339 |
| 340 #endif // CHROME_TEST_AUTOMATION_PROXY_LAUNCHER_H_ | 340 #endif // CHROME_TEST_AUTOMATION_PROXY_LAUNCHER_H_ |
| OLD | NEW |