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

Unified Diff: chrome/test/chromedriver/net/net_util.h

Issue 11415205: [chromedriver] Implement connecting to devtools and loading a page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698