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

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

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.cc
diff --git a/content/common/net/url_fetcher.cc b/content/common/net/url_fetcher.cc
index be4d448eaa6c327b0e7d296e9bf7b827c920bec0..677eafea55a83b79924fa38f23ba42be13576b97 100644
--- a/content/common/net/url_fetcher.cc
+++ b/content/common/net/url_fetcher.cc
@@ -1007,6 +1007,11 @@ net::HttpResponseHeaders* URLFetcher::response_headers() const {
return core_->response_headers_;
}
+void URLFetcher::set_response_headers(
+ scoped_refptr<net::HttpResponseHeaders> headers) {
Mattias Nissler (ping if slow) 2011/09/28 09:06:18 Pass a const ref in order to avoid an unnecessary
willchan no longer on Chromium 2011/09/28 18:51:28 The rule is to pass in a raw pointer, never const
+ core_->response_headers_ = headers;
+}
+
// TODO(panayiotis): socket_address_ is written in the IO thread,
// if this is accessed in the UI thread, this could result in a race.
// Same for response_headers_ above and was_fetched_via_proxy_ below.
@@ -1018,6 +1023,10 @@ bool URLFetcher::was_fetched_via_proxy() const {
return core_->was_fetched_via_proxy_;
}
+void URLFetcher::set_was_fetched_via_proxy(bool flag) {
+ core_->was_fetched_via_proxy_ = flag;
+}
+
void URLFetcher::Start() {
core_->Start();
}

Powered by Google App Engine
This is Rietveld 408576698