Chromium Code Reviews| 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 20 matching lines...) Expand all Loading... | |
| 31 int modifiers; | 31 int modifiers; |
| 32 }; | 32 }; |
| 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, |
| 42 int timeout) WARN_UNUSED_RESULT; | |
|
Paweł Hajdan Jr.
2011/03/29 18:57:54
nit: Change timeout to timeout_ms (in all places w
Huyen
2011/03/31 02:42:55
Done.
| |
| 42 | 43 |
| 43 // Requests the current browser and tab indices for the given tab ID. | 44 // Requests the current browser and tab indices for the given tab ID. |
| 44 // Returns true on success. | 45 // Returns true on success. |
| 45 bool SendGetIndicesFromTabIdJSONRequest( | 46 bool SendGetIndicesFromTabIdJSONRequest( |
| 46 AutomationMessageSender* sender, | 47 AutomationMessageSender* sender, |
| 47 int tab_id, | 48 int tab_id, |
| 48 int* browser_index, | 49 int* browser_index, |
| 49 int* tab_index) WARN_UNUSED_RESULT; | 50 int* tab_index) WARN_UNUSED_RESULT; |
| 50 | 51 |
| 51 // Requests the current browser and tab indices for the given |TabProxy| | 52 // Requests the current browser and tab indices for the given |TabProxy| |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 188 AutomationMessageSender* sender, | 189 AutomationMessageSender* sender, |
| 189 int browser_index, | 190 int browser_index, |
| 190 int tab_index, | 191 int tab_index, |
| 191 const WebKeyEvent& key_event) WARN_UNUSED_RESULT; | 192 const WebKeyEvent& key_event) WARN_UNUSED_RESULT; |
| 192 | 193 |
| 193 // Requests to wait for all tabs to stop loading. Returns true on success. | 194 // Requests to wait for all tabs to stop loading. Returns true on success. |
| 194 bool SendWaitForAllTabsToStopLoadingJSONRequest( | 195 bool SendWaitForAllTabsToStopLoadingJSONRequest( |
| 195 AutomationMessageSender* sender) WARN_UNUSED_RESULT; | 196 AutomationMessageSender* sender) WARN_UNUSED_RESULT; |
| 196 | 197 |
| 197 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ | 198 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ |
| OLD | NEW |