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_BROWSER_PROXY_H_ | 5 #ifndef CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_ |
6 #define CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_ | 6 #define CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 // Generic pattern for sending automation requests. | 225 // Generic pattern for sending automation requests. |
226 bool SendJSONRequest(const std::string& request, | 226 bool SendJSONRequest(const std::string& request, |
227 int timeout_ms, | 227 int timeout_ms, |
228 std::string* response) WARN_UNUSED_RESULT; | 228 std::string* response) WARN_UNUSED_RESULT; |
229 | 229 |
230 // Gets the load times for all tabs started from the command line. | 230 // Gets the load times for all tabs started from the command line. |
231 // Puts the time of the first tab to start loading into |min_start_time|, | 231 // Puts the time of the first tab to start loading into |min_start_time|, |
232 // the time when loading stopped into |max_stop_time| (should be similar to | 232 // the time when loading stopped into |max_stop_time| (should be similar to |
233 // the delay that WaitForInitialLoads waits for), and a list of all | 233 // the delay that WaitForInitialLoads waits for), and a list of all |
234 // finished timestamps into |stop_times|. Returns true on success. | 234 // finished timestamps into |stop_times|. Returns true on success. |
235 bool GetInitialLoadTimes(float* min_start_time, float* max_stop_time, | 235 bool GetInitialLoadTimes( |
236 std::vector<float>* stop_times); | 236 int timeout_ms, |
| 237 float* min_start_time, |
| 238 float* max_stop_time, |
| 239 std::vector<float>* stop_times); |
237 | 240 |
238 | 241 |
239 protected: | 242 protected: |
240 virtual ~BrowserProxy() {} | 243 virtual ~BrowserProxy() {} |
241 private: | 244 private: |
242 DISALLOW_COPY_AND_ASSIGN(BrowserProxy); | 245 DISALLOW_COPY_AND_ASSIGN(BrowserProxy); |
243 }; | 246 }; |
244 | 247 |
245 #endif // CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_ | 248 #endif // CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_ |
OLD | NEW |