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_SESSION_COMMANDS_H_ | 5 #ifndef CHROME_TEST_CHROMEDRIVER_SESSION_COMMANDS_H_ |
6 #define CHROME_TEST_CHROMEDRIVER_SESSION_COMMANDS_H_ | 6 #define CHROME_TEST_CHROMEDRIVER_SESSION_COMMANDS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 class PortServer; | 22 class PortServer; |
23 struct Session; | 23 struct Session; |
24 class Status; | 24 class Status; |
25 class URLRequestContextGetter; | 25 class URLRequestContextGetter; |
26 | 26 |
27 struct InitSessionParams { | 27 struct InitSessionParams { |
28 InitSessionParams(scoped_refptr<URLRequestContextGetter> context_getter, | 28 InitSessionParams(scoped_refptr<URLRequestContextGetter> context_getter, |
29 const SyncWebSocketFactory& socket_factory, | 29 const SyncWebSocketFactory& socket_factory, |
30 DeviceManager* device_manager, | 30 DeviceManager* device_manager, |
31 PortServer* port_server, | 31 PortServer* port_server, |
32 PortManager* port_manager); | 32 PortManager* port_manager, |
| 33 PortManager* port_manager_android); |
33 ~InitSessionParams(); | 34 ~InitSessionParams(); |
34 | 35 |
35 scoped_refptr<URLRequestContextGetter> context_getter; | 36 scoped_refptr<URLRequestContextGetter> context_getter; |
36 SyncWebSocketFactory socket_factory; | 37 SyncWebSocketFactory socket_factory; |
37 DeviceManager* device_manager; | 38 DeviceManager* device_manager; |
38 PortServer* port_server; | 39 PortServer* port_server; |
39 PortManager* port_manager; | 40 PortManager* port_manager; |
| 41 PortManager* port_manager_android; |
40 }; | 42 }; |
41 | 43 |
42 // Initializes a session. | 44 // Initializes a session. |
43 Status ExecuteInitSession( | 45 Status ExecuteInitSession( |
44 const InitSessionParams& bound_params, | 46 const InitSessionParams& bound_params, |
45 Session* session, | 47 Session* session, |
46 const base::DictionaryValue& params, | 48 const base::DictionaryValue& params, |
47 scoped_ptr<base::Value>* value); | 49 scoped_ptr<base::Value>* value); |
48 | 50 |
49 // Quits a session. | 51 // Quits a session. |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 Session* session, | 149 Session* session, |
148 const base::DictionaryValue& params, | 150 const base::DictionaryValue& params, |
149 scoped_ptr<base::Value>* value); | 151 scoped_ptr<base::Value>* value); |
150 | 152 |
151 Status ExecuteUploadFile( | 153 Status ExecuteUploadFile( |
152 Session* session, | 154 Session* session, |
153 const base::DictionaryValue& params, | 155 const base::DictionaryValue& params, |
154 scoped_ptr<base::Value>* value); | 156 scoped_ptr<base::Value>* value); |
155 | 157 |
156 #endif // CHROME_TEST_CHROMEDRIVER_SESSION_COMMANDS_H_ | 158 #endif // CHROME_TEST_CHROMEDRIVER_SESSION_COMMANDS_H_ |
OLD | NEW |