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

Unified Diff: content/common/net/url_fetcher.h

Issue 8054013: Recover from bad proxy settings pointing to non-proxy servers that reply anyway. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
Index: content/common/net/url_fetcher.h
diff --git a/content/common/net/url_fetcher.h b/content/common/net/url_fetcher.h
index 1e58a1dc3321bf26499f18d8c245971796bd0c19..74bbf7b718b00566eb67229cd4fe6161e010195f 100644
--- a/content/common/net/url_fetcher.h
+++ b/content/common/net/url_fetcher.h
@@ -283,6 +283,12 @@ class CONTENT_EXPORT URLFetcher {
// Used by tests.
const std::string& upload_data() const;
+ // Used by tests.
+ void set_was_fetched_via_proxy(bool flag);
+
+ // Used by tests.
+ void set_response_headers(scoped_refptr<net::HttpResponseHeaders> headers);
+
virtual void SetResponseDestinationForTesting(ResponseDestinationType);
virtual ResponseDestinationType GetResponseDestinationForTesting() const;

Powered by Google App Engine
This is Rietveld 408576698