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: net/url_request/url_request.cc

Issue 1310743003: Consistently use LoFi for an entire page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fixes Created 5 years, 4 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
« net/url_request/url_request.h ('K') | « net/url_request/url_request.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request.cc
diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc
index c12f9d1ea26d83a49569b8d8945c07efbbd585c2..aec76de744c98579588ca33ea760c9839f4cfa99 100644
--- a/net/url_request/url_request.cc
+++ b/net/url_request/url_request.cc
@@ -484,6 +484,10 @@ void URLRequest::set_delegate(Delegate* delegate) {
delegate_ = delegate;
}
+void URLRequest::set_lofi_state(LoFiState lofi_state) {
+ lofi_state_ = lofi_state;
+}
+
void URLRequest::Start() {
// TODO(pkasting): Remove ScopedTracker below once crbug.com/456327 is fixed.
tracked_objects::ScopedTracker tracking_profile(
@@ -557,7 +561,8 @@ URLRequest::URLRequest(const GURL& url,
has_notified_completion_(false),
received_response_content_length_(0),
creation_time_(base::TimeTicks::Now()),
- notified_before_network_start_(false) {
+ notified_before_network_start_(false),
+ lofi_state_(LOFI_DEFAULT) {
// Sanity check out environment.
DCHECK(base::MessageLoop::current())
<< "The current base::MessageLoop must exist";
« net/url_request/url_request.h ('K') | « net/url_request/url_request.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698