| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 CHROME_TEST_CHROMEDRIVER_CHROME_LAUNCHER_H_ | 5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_LAUNCHER_H_ |
| 6 #define CHROME_TEST_CHROMEDRIVER_CHROME_LAUNCHER_H_ | 6 #define CHROME_TEST_CHROMEDRIVER_CHROME_LAUNCHER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/memory/scoped_vector.h" | |
| 14 #include "chrome/test/chromedriver/capabilities.h" | 13 #include "chrome/test/chromedriver/capabilities.h" |
| 15 #include "chrome/test/chromedriver/net/sync_websocket_factory.h" | 14 #include "chrome/test/chromedriver/net/sync_websocket_factory.h" |
| 16 | 15 |
| 17 class DevToolsEventListener; | 16 class DevToolsEventListener; |
| 18 | 17 |
| 19 namespace base { | 18 namespace base { |
| 20 class DictionaryValue; | 19 class DictionaryValue; |
| 21 class FilePath; | 20 class FilePath; |
| 22 } | 21 } |
| 23 | 22 |
| 24 class Chrome; | 23 class Chrome; |
| 25 class DeviceManager; | 24 class DeviceManager; |
| 26 class PortManager; | 25 class PortManager; |
| 27 class PortServer; | 26 class PortServer; |
| 28 class Status; | 27 class Status; |
| 29 class URLRequestContextGetter; | 28 class URLRequestContextGetter; |
| 30 | 29 |
| 31 Status LaunchChrome( | 30 Status LaunchChrome(URLRequestContextGetter* context_getter, |
| 32 URLRequestContextGetter* context_getter, | 31 const SyncWebSocketFactory& socket_factory, |
| 33 const SyncWebSocketFactory& socket_factory, | 32 DeviceManager* device_manager, |
| 34 DeviceManager* device_manager, | 33 PortServer* port_server, |
| 35 PortServer* port_server, | 34 PortManager* port_manager, |
| 36 PortManager* port_manager, | 35 const Capabilities& capabilities, |
| 37 const Capabilities& capabilities, | 36 std::vector<std::unique_ptr<DevToolsEventListener>> |
| 38 ScopedVector<DevToolsEventListener>* devtools_event_listeners, | 37 devtools_event_listeners, |
| 39 std::unique_ptr<Chrome>* chrome, | 38 std::unique_ptr<Chrome>* chrome, |
| 40 bool w3c_compliant); | 39 bool w3c_compliant); |
| 41 | 40 |
| 42 namespace internal { | 41 namespace internal { |
| 43 Status ProcessExtensions(const std::vector<std::string>& extensions, | 42 Status ProcessExtensions(const std::vector<std::string>& extensions, |
| 44 const base::FilePath& temp_dir, | 43 const base::FilePath& temp_dir, |
| 45 bool include_automation_extension, | 44 bool include_automation_extension, |
| 46 Switches* switches, | 45 Switches* switches, |
| 47 std::vector<std::string>* bg_pages); | 46 std::vector<std::string>* bg_pages); |
| 48 Status PrepareUserDataDir( | 47 Status PrepareUserDataDir( |
| 49 const base::FilePath& user_data_dir, | 48 const base::FilePath& user_data_dir, |
| 50 const base::DictionaryValue* custom_prefs, | 49 const base::DictionaryValue* custom_prefs, |
| 51 const base::DictionaryValue* custom_local_state); | 50 const base::DictionaryValue* custom_local_state); |
| 52 } // namespace internal | 51 } // namespace internal |
| 53 | 52 |
| 54 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_LAUNCHER_H_ | 53 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_LAUNCHER_H_ |
| OLD | NEW |