Index: chrome/test/chromedriver/net/net_util.h |
diff --git a/chrome/test/chromedriver/net/net_util.h b/chrome/test/chromedriver/net/net_util.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..78ab424361e196a5f4e3d0fbb3449e479dccf1af |
--- /dev/null |
+++ b/chrome/test/chromedriver/net/net_util.h |
@@ -0,0 +1,19 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_TEST_CHROMEDRIVER_NET_NET_UTIL_H_ |
+#define CHROME_TEST_CHROMEDRIVER_NET_NET_UTIL_H_ |
+ |
+#include <string> |
+ |
+class GURL; |
+class URLRequestContextGetter; |
+ |
+// Synchronously fetches data from a GET HTTP request to the given URL. |
+// Returns true if response is 200 OK and sets response body to |response|. |
+bool FetchUrl(const GURL& url, |
+ URLRequestContextGetter* getter, |
+ std::string* response); |
+ |
+#endif // CHROME_TEST_CHROMEDRIVER_NET_NET_UTIL_H_ |