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

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: Thestig comment and test fix Created 5 years, 10 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 e53d673e48ee8757b5b20c19aad67424e2bcbcfb..1a84aa641b0eb8d281539d041e1b0862df9b7443 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/memory/weak_ptr.h"
#include "base/prefs/pref_member.h"
+#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_debug_ui_service.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"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.h"
@@ -103,6 +104,19 @@ class DataReductionProxyIOData {
return usage_stats_.get();
}
+ DataReductionProxyParams* params() const {
+ return params_.get();
+ }
+
+ DataReductionProxyDebugUIService* debug_ui_service() const {
+ return debug_ui_service_.get();
+ }
+
+ void set_debug_ui_service(
+ scoped_ptr<DataReductionProxyDebugUIService> ui_service) const {
+ debug_ui_service_= ui_service.Pass();
+ }
+
private:
// The type of Data Reduction Proxy client.
Client client_;
@@ -112,10 +126,15 @@ class DataReductionProxyIOData {
// Tracker of compression statistics to be displayed to the user.
base::WeakPtr<DataReductionProxyStatisticsPrefs> statistics_prefs_;
+
// |temporary_statistics_prefs_| is used only until DataReductionProxySettings
// initialization and is dead after.
scoped_ptr<DataReductionProxyStatisticsPrefs> temporary_statistics_prefs_;
+ // Holds the DataReductionProxyDebugUIManager for Data Reduction Proxy bypass
+ // interstitials.
+ mutable scoped_ptr<DataReductionProxyDebugUIService> 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