Chromium Code Reviews| Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h |
| diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h |
| index 2d96ea28e837d5f2624a15a8b1f93694de7926fb..33cca4aa51a8e6d2d3608e587df3844514901d16 100644 |
| --- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h |
| +++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h |
| @@ -21,6 +21,7 @@ |
| #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.h" |
| #include "components/data_reduction_proxy/core/common/data_reduction_proxy_event_storage_delegate.h" |
| #include "components/data_reduction_proxy/core/common/lofi_decider.h" |
| +#include "components/data_reduction_proxy/core/common/lofi_ui_service.h" |
| namespace base { |
| class Value; |
| @@ -176,6 +177,12 @@ class DataReductionProxyIOData : public DataReductionProxyEventStorageDelegate { |
| lofi_decider_ = std::move(lofi_decider); |
| } |
| + LoFiUIService* lofi_ui_service() const { return lofi_ui_service_.get(); } |
| + |
| + void set_lofi_ui_service(scoped_ptr<LoFiUIService> lofi_ui_service) const { |
|
tbansal1
2016/01/05 03:10:59
Can you comment on the ownership?
megjablon
2016/01/05 20:13:03
Done.
|
| + lofi_ui_service_ = std::move(lofi_ui_service); |
| + } |
| + |
| private: |
| friend class TestDataReductionProxyIOData; |
| FRIEND_TEST_ALL_PREFIXES(DataReductionProxyIODataTest, TestConstruction); |
| @@ -216,6 +223,9 @@ class DataReductionProxyIOData : public DataReductionProxyEventStorageDelegate { |
| // Handles getting if a request is in Lo-Fi mode. |
| mutable scoped_ptr<LoFiDecider> lofi_decider_; |
| + // Handles showing Lo-Fi UI when a Lo-Fi response is received. |
| + mutable scoped_ptr<LoFiUIService> lofi_ui_service_; |
| + |
| // Creates Data Reduction Proxy-related events for logging. |
| scoped_ptr<DataReductionProxyEventCreator> event_creator_; |