Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: chrome/test/automation/automation_json_requests.h

Issue 7104085: In chromedriver, add /log handler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/automation/automation_json_requests.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 26 matching lines...) Expand all
37 // Sends a JSON request to the chrome automation provider. Returns true 37 // Sends a JSON request to the chrome automation provider. Returns true
38 // if the JSON request was successfully sent and the reply was received. 38 // if the JSON request was successfully sent and the reply was received.
39 // If true, |success| will be set to whether the JSON request was 39 // If true, |success| will be set to whether the JSON request was
40 // completed successfully by the automation provider. 40 // completed successfully by the automation provider.
41 bool SendAutomationJSONRequest(AutomationMessageSender* sender, 41 bool SendAutomationJSONRequest(AutomationMessageSender* sender,
42 const std::string& request, 42 const std::string& request,
43 int timeout_ms, 43 int timeout_ms,
44 std::string* reply, 44 std::string* reply,
45 bool* success) WARN_UNUSED_RESULT; 45 bool* success) WARN_UNUSED_RESULT;
46 46
47 // Same as above, but uses the given |AutomationMessageSender|'s default timeout
48 // value.
49 bool SendAutomationJSONRequestWithDefaultTimeout(
50 AutomationMessageSender* sender,
51 const std::string& request,
52 std::string* reply,
53 bool* success);
54
47 // Requests the current browser and tab indices for the given tab ID. 55 // Requests the current browser and tab indices for the given tab ID.
48 // Returns true on success. 56 // Returns true on success.
49 bool SendGetIndicesFromTabIdJSONRequest( 57 bool SendGetIndicesFromTabIdJSONRequest(
50 AutomationMessageSender* sender, 58 AutomationMessageSender* sender,
51 int tab_id, 59 int tab_id,
52 int* browser_index, 60 int* browser_index,
53 int* tab_index, 61 int* tab_index,
54 std::string* error_msg) WARN_UNUSED_RESULT; 62 std::string* error_msg) WARN_UNUSED_RESULT;
55 63
56 // Requests the current browser and tab indices for the given |TabProxy| 64 // Requests the current browser and tab indices for the given |TabProxy|
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 std::string* error_msg) WARN_UNUSED_RESULT; 326 std::string* error_msg) WARN_UNUSED_RESULT;
319 327
320 // Requests the version of ChromeDriver automation supported by the automation 328 // Requests the version of ChromeDriver automation supported by the automation
321 // server. Returns true on success. 329 // server. Returns true on success.
322 bool SendGetChromeDriverAutomationVersion( 330 bool SendGetChromeDriverAutomationVersion(
323 AutomationMessageSender* sender, 331 AutomationMessageSender* sender,
324 int* version, 332 int* version,
325 std::string* error_msg) WARN_UNUSED_RESULT; 333 std::string* error_msg) WARN_UNUSED_RESULT;
326 334
327 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ 335 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/automation/automation_json_requests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698