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

Unified Diff: content/common/resource_messages.h

Issue 1310743003: Consistently use LoFi for an entire page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: using UserData and adressing nasko comments Created 5 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/resource_messages.h
diff --git a/content/common/resource_messages.h b/content/common/resource_messages.h
index 744a9235ced196aae80b75c0d16da92d88c45724..b372db8524e4b09f8112362165f5a302904d4f3d 100644
--- a/content/common/resource_messages.h
+++ b/content/common/resource_messages.h
@@ -13,6 +13,7 @@
#include "content/common/resource_request_body.h"
#include "content/common/service_worker/service_worker_types.h"
#include "content/public/common/common_param_traits.h"
+#include "content/public/common/data_reduction_proxy_lofi_user_data.h"
#include "content/public/common/resource_response.h"
#include "ipc/ipc_message_macros.h"
#include "net/base/request_priority.h"
@@ -135,6 +136,7 @@ IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseInfo)
IPC_STRUCT_TRAITS_MEMBER(service_worker_start_time)
IPC_STRUCT_TRAITS_MEMBER(service_worker_ready_time)
IPC_STRUCT_TRAITS_MEMBER(proxy_server)
+ IPC_STRUCT_TRAITS_MEMBER(is_lofi)
IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(net::RedirectInfo)
@@ -270,6 +272,10 @@ IPC_STRUCT_BEGIN(ResourceHostMsg_Request)
// Whether to intercept headers to pass back to the renderer.
IPC_STRUCT_MEMBER(bool, report_raw_headers)
+
+ // Whether or not to request a LoFi version of the resource or let the browser
+ // decide.
+ IPC_STRUCT_MEMBER(content::LoFiState, lofi_state)
IPC_STRUCT_END()
// Parameters for a ResourceMsg_RequestComplete

Powered by Google App Engine
This is Rietveld 408576698