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