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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h

Issue 684223003: Data Reduction Proxy Interstitials (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 11 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: 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 b679892786388bc5e0c0d160b4edac7ced4432b3..34f12affb5b06368fae141b8866d7712e8f0b07a 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
@@ -8,6 +8,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/prefs/pref_member.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_auth_request_handler.h"
+#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_debug_ui_service_core.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h"
@@ -98,6 +99,19 @@ class DataReductionProxyIOData {
return usage_stats_.get();
}
+ DataReductionProxyParams* params() const {
+ return params_.get();
+ }
+
+ DataReductionProxyDebugUIServiceCore* debug_ui_service() const {
+ return debug_ui_service_.get();
+ }
+
+ void set_debug_ui_service(
+ scoped_ptr<DataReductionProxyDebugUIServiceCore> ui_service) const {
+ debug_ui_service_= ui_service.Pass();
+ }
+
private:
// The type of Data Reduction Proxy client.
Client client_;
@@ -108,6 +122,10 @@ class DataReductionProxyIOData {
// Tracker of compression statistics to be displayed to the user.
scoped_ptr<DataReductionProxyStatisticsPrefs> statistics_prefs_;
+ // Holds the DataReductionProxyDebugUIManager for Data Reduction Proxy bypass
+ // interstitials.
+ mutable scoped_ptr<DataReductionProxyDebugUIServiceCore> debug_ui_service_;
+
// Tracker of Data Reduction Proxy-related events, e.g., for logging.
scoped_ptr<DataReductionProxyEventStore> event_store_;

Powered by Google App Engine
This is Rietveld 408576698