| 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_WEBDRIVER_AUTOMATION_H_ | 5 #ifndef CHROME_TEST_WEBDRIVER_AUTOMATION_H_ |
| 6 #define CHROME_TEST_WEBDRIVER_AUTOMATION_H_ | 6 #define CHROME_TEST_WEBDRIVER_AUTOMATION_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 // Creates and controls the Chrome instance. | 38 // Creates and controls the Chrome instance. |
| 39 // This class should be created and accessed on a single thread. | 39 // This class should be created and accessed on a single thread. |
| 40 // Note: All member functions are void because they are invoked | 40 // Note: All member functions are void because they are invoked |
| 41 // by posting a task from NewRunnableMethod. | 41 // by posting a task from NewRunnableMethod. |
| 42 class Automation { | 42 class Automation { |
| 43 public: | 43 public: |
| 44 struct BrowserOptions { | 44 struct BrowserOptions { |
| 45 BrowserOptions(); | 45 BrowserOptions(); |
| 46 ~BrowserOptions(); | 46 ~BrowserOptions(); |
| 47 | 47 |
| 48 CommandLine command; | 48 CommandLine cmdline; |
| 49 FilePath user_data_dir; | 49 FilePath user_data_dir; |
| 50 std::string channel_id; | 50 std::string channel_id; |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 Automation(); | 53 Automation(); |
| 54 virtual ~Automation(); | 54 virtual ~Automation(); |
| 55 | 55 |
| 56 // Start the system's default Chrome binary. | 56 // Start the system's default Chrome binary. |
| 57 void Init(const BrowserOptions& options, Error** error); | 57 void Init(const BrowserOptions& options, Error** error); |
| 58 | 58 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 scoped_ptr<ProxyLauncher> launcher_; | 169 scoped_ptr<ProxyLauncher> launcher_; |
| 170 | 170 |
| 171 DISALLOW_COPY_AND_ASSIGN(Automation); | 171 DISALLOW_COPY_AND_ASSIGN(Automation); |
| 172 }; | 172 }; |
| 173 | 173 |
| 174 } // namespace webdriver | 174 } // namespace webdriver |
| 175 | 175 |
| 176 DISABLE_RUNNABLE_METHOD_REFCOUNT(webdriver::Automation); | 176 DISABLE_RUNNABLE_METHOD_REFCOUNT(webdriver::Automation); |
| 177 | 177 |
| 178 #endif // CHROME_TEST_WEBDRIVER_AUTOMATION_H_ | 178 #endif // CHROME_TEST_WEBDRIVER_AUTOMATION_H_ |
| OLD | NEW |