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

Unified Diff: content/child/request_extra_data.h

Issue 1310743003: Consistently use LoFi for an entire page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bengr comments and rebase Created 5 years, 2 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 | « content/browser/loader/resource_request_info_impl.cc ('k') | content/child/request_extra_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/request_extra_data.h
diff --git a/content/child/request_extra_data.h b/content/child/request_extra_data.h
index b73e196d17af9e1ea92dd48eba091e191fbfd134..37988d54dc570db7ecf3cd0aea92a890ccfe0159 100644
--- a/content/child/request_extra_data.h
+++ b/content/child/request_extra_data.h
@@ -8,6 +8,7 @@
#include "base/compiler_specific.h"
#include "content/child/web_url_loader_impl.h"
#include "content/common/content_export.h"
+#include "content/common/navigation_params.h"
#include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
#include "third_party/WebKit/public/platform/WebString.h"
#include "third_party/WebKit/public/platform/WebURLRequest.h"
@@ -86,6 +87,12 @@ class CONTENT_EXPORT RequestExtraData
int service_worker_provider_id) {
service_worker_provider_id_ = service_worker_provider_id;
}
+ LoFiState lofi_state() const {
+ return lofi_state_;
+ }
+ void set_lofi_state(LoFiState lofi_state) {
+ lofi_state_ = lofi_state;
+ }
// |custom_user_agent| is used to communicate an overriding custom user agent
// to |RenderViewImpl::willSendRequest()|; set to a null string to indicate no
// override and an empty string to indicate that there should be no user
@@ -130,6 +137,7 @@ class CONTENT_EXPORT RequestExtraData
blink::WebString custom_user_agent_;
blink::WebString requested_with_;
scoped_ptr<StreamOverrideParameters> stream_override_;
+ LoFiState lofi_state_;
DISALLOW_COPY_AND_ASSIGN(RequestExtraData);
};
« no previous file with comments | « content/browser/loader/resource_request_info_impl.cc ('k') | content/child/request_extra_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698