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

Unified Diff: headless/public/util/url_fetcher.h

Issue 2352663003: Adds a --deterministic-fetch flag to headless_shell (Closed)
Patch Set: Changes for Sami Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « headless/public/util/testing/generic_url_request_mocks.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/public/util/url_fetcher.h
diff --git a/headless/public/util/url_fetcher.h b/headless/public/util/url_fetcher.h
index 115302f6d607f5a229d142df25e47ef0f9fe61b7..ac4bbc51426b29b3f290b3cafdbe1c89652f700b 100644
--- a/headless/public/util/url_fetcher.h
+++ b/headless/public/util/url_fetcher.h
@@ -22,8 +22,6 @@ class HttpResponseHeaders;
namespace headless {
// An interface for fetching URLs. Note these are only intended to be used once.
-// TODO(alexclarke): Implement a URLFetcher that can backend onto a URLRequest
-// and hook this up in headless_shell under a flag.
class URLFetcher {
public:
URLFetcher() {}
@@ -63,6 +61,7 @@ class URLFetcher {
// Instructs the sub-class to fetch the resource.
virtual void StartFetch(const GURL& rewritten_url,
+ const std::string& method,
const net::HttpRequestHeaders& request_headers,
ResultListener* result_listener) = 0;
« no previous file with comments | « headless/public/util/testing/generic_url_request_mocks.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698