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" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "chrome/test/chromedriver/command.h" | 12 #include "chrome/test/chromedriver/command.h" |
13 #include "chrome/test/chromedriver/session_thread_map.h" | 13 #include "chrome/test/chromedriver/net/sync_websocket_factory.h" |
14 | 14 |
15 namespace base { | 15 namespace base { |
16 class DictionaryValue; | 16 class DictionaryValue; |
17 class Value; | 17 class Value; |
18 } | 18 } |
19 | 19 |
| 20 class DeviceManager; |
20 struct Session; | 21 struct Session; |
21 class Status; | 22 class Status; |
| 23 class URLRequestContextGetter; |
| 24 |
| 25 struct InitSessionParams { |
| 26 InitSessionParams(scoped_refptr<URLRequestContextGetter> context_getter, |
| 27 const SyncWebSocketFactory& socket_factory, |
| 28 DeviceManager* device_manager); |
| 29 ~InitSessionParams(); |
| 30 |
| 31 scoped_refptr<URLRequestContextGetter> context_getter; |
| 32 SyncWebSocketFactory socket_factory; |
| 33 DeviceManager* device_manager; |
| 34 }; |
| 35 |
| 36 // Initializes a session. |
| 37 Status ExecuteInitSession( |
| 38 const InitSessionParams& bound_params, |
| 39 Session* session, |
| 40 const base::DictionaryValue& params, |
| 41 scoped_ptr<base::Value>* value); |
22 | 42 |
23 // Quits a session. | 43 // Quits a session. |
24 Status ExecuteQuit( | 44 Status ExecuteQuit( |
25 bool allow_detach, | 45 bool allow_detach, |
26 Session* session, | 46 Session* session, |
27 const base::DictionaryValue& params, | 47 const base::DictionaryValue& params, |
28 scoped_ptr<base::Value>* value); | 48 scoped_ptr<base::Value>* value); |
29 | 49 |
30 // Gets the capabilities of a particular session. | 50 // Gets the capabilities of a particular session. |
31 Status ExecuteGetSessionCapabilities( | 51 Status ExecuteGetSessionCapabilities( |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 Session* session, | 141 Session* session, |
122 const base::DictionaryValue& params, | 142 const base::DictionaryValue& params, |
123 scoped_ptr<base::Value>* value); | 143 scoped_ptr<base::Value>* value); |
124 | 144 |
125 Status ExecuteUploadFile( | 145 Status ExecuteUploadFile( |
126 Session* session, | 146 Session* session, |
127 const base::DictionaryValue& params, | 147 const base::DictionaryValue& params, |
128 scoped_ptr<base::Value>* value); | 148 scoped_ptr<base::Value>* value); |
129 | 149 |
130 #endif // CHROME_TEST_CHROMEDRIVER_SESSION_COMMANDS_H_ | 150 #endif // CHROME_TEST_CHROMEDRIVER_SESSION_COMMANDS_H_ |
OLD | NEW |