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