Chromium Code Reviews| Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_data.h |
| diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_data.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_data.h |
| index fd8f4f50898b4322ba14a04ff26de1ff6baef145..e9a9e2ae3078756bb10d1eadaef0b20109e874c9 100644 |
| --- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_data.h |
| +++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_data.h |
| @@ -41,6 +41,16 @@ class DataReductionProxyData : public base::SupportsUserData::Data { |
| lofi_requested_ = lofi_requested; |
| } |
| + // Whether a lite page response was seen for the request or navigation. |
| + bool lite_page_received() const { return lite_page_received_; } |
| + void set_lite_page_received(bool lite_page_received) { |
| + lite_page_received_ = lite_page_received; |
| + } |
| + |
| + // Whether a lite page response was seen for the request or navigation. |
| + bool lofi_received() const { return lofi_received_; } |
| + void set_lofi_received(bool lofi_received) { lofi_received_ = lofi_received; } |
| + |
| // The session key used for this request. |
| std::string session_key() const { return session_key_; } |
| void set_session_key(const std::string& session_key) { |
| @@ -64,7 +74,7 @@ class DataReductionProxyData : public base::SupportsUserData::Data { |
| // An identifier that is guaranteed to be unique to each page load during a |
| // data saver session. Only present on main frame requests. |
| - base::Optional<uint64_t> page_id() const { return page_id_; } |
| + const base::Optional<uint64_t>& page_id() const { return page_id_; } |
|
bengr
2017/04/20 17:36:18
#include <stdint.h>
RyanSturm
2017/04/20 20:25:44
Done.
|
| void set_page_id(uint64_t page_id) { page_id_ = page_id; } |
| // Removes |this| from |request|. |
| @@ -92,6 +102,12 @@ class DataReductionProxyData : public base::SupportsUserData::Data { |
| // slow. |
| bool lofi_requested_; |
| + // Whether a lite page response was seen for the request or navigation. |
| + bool lite_page_received_; |
| + |
| + // Whether a lite page response was seen for the request or navigation. |
| + bool lofi_received_; |
| + |
| // The session key used for this request or navigation. |
| std::string session_key_; |