OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ | 5 #ifndef CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ |
6 #define CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ | 6 #define CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 22 matching lines...) Expand all Loading... | |
33 | 33 |
34 // Sends a JSON request to the chrome automation provider. Returns true | 34 // Sends a JSON request to the chrome automation provider. Returns true |
35 // if the JSON request was successfully sent and the reply was received. | 35 // if the JSON request was successfully sent and the reply was received. |
36 // If true, |success| will be set to whether the JSON request was | 36 // If true, |success| will be set to whether the JSON request was |
37 // completed successfully by the automation provider. | 37 // completed successfully by the automation provider. |
38 bool SendAutomationJSONRequest(AutomationMessageSender* sender, | 38 bool SendAutomationJSONRequest(AutomationMessageSender* sender, |
39 const std::string& request, | 39 const std::string& request, |
40 std::string* reply, | 40 std::string* reply, |
41 bool* success) WARN_UNUSED_RESULT; | 41 bool* success) WARN_UNUSED_RESULT; |
42 | 42 |
43 bool SendAutomationJSONRequest(AutomationMessageSender* sender, | |
Paweł Hajdan Jr.
2011/03/26 10:55:12
nit: SendAutomationJSONRequest seems to be used in
Huyen
2011/03/29 00:11:39
Done.
| |
44 const std::string& request, | |
45 std::string* reply, | |
46 bool* success, | |
47 int timeout) WARN_UNUSED_RESULT; | |
48 | |
43 // Requests the current browser and tab indices for the given tab ID. | 49 // Requests the current browser and tab indices for the given tab ID. |
44 // Returns true on success. | 50 // Returns true on success. |
45 bool SendGetIndicesFromTabIdJSONRequest( | 51 bool SendGetIndicesFromTabIdJSONRequest( |
46 AutomationMessageSender* sender, | 52 AutomationMessageSender* sender, |
47 int tab_id, | 53 int tab_id, |
48 int* browser_index, | 54 int* browser_index, |
49 int* tab_index) WARN_UNUSED_RESULT; | 55 int* tab_index) WARN_UNUSED_RESULT; |
50 | 56 |
51 // Requests the current browser and tab indices for the given |TabProxy| | 57 // Requests the current browser and tab indices for the given |TabProxy| |
52 // handle. Returns true on success. | 58 // handle. Returns true on success. |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
188 AutomationMessageSender* sender, | 194 AutomationMessageSender* sender, |
189 int browser_index, | 195 int browser_index, |
190 int tab_index, | 196 int tab_index, |
191 const WebKeyEvent& key_event) WARN_UNUSED_RESULT; | 197 const WebKeyEvent& key_event) WARN_UNUSED_RESULT; |
192 | 198 |
193 // Requests to wait for all tabs to stop loading. Returns true on success. | 199 // Requests to wait for all tabs to stop loading. Returns true on success. |
194 bool SendWaitForAllTabsToStopLoadingJSONRequest( | 200 bool SendWaitForAllTabsToStopLoadingJSONRequest( |
195 AutomationMessageSender* sender) WARN_UNUSED_RESULT; | 201 AutomationMessageSender* sender) WARN_UNUSED_RESULT; |
196 | 202 |
197 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ | 203 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ |
OLD | NEW |