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