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

Unified Diff: chrome/browser/profiles/profile_io_data.h

Issue 398853003: [Android] Enable SB protection when --enable-spdy-proxy-auth is on. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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: chrome/browser/profiles/profile_io_data.h
diff --git a/chrome/browser/profiles/profile_io_data.h b/chrome/browser/profiles/profile_io_data.h
index 690c6090712563fa8851549d5136cde33dc194de..ffd1d79f23448872952455a3cb909d8cf6ad2fa4 100644
--- a/chrome/browser/profiles/profile_io_data.h
+++ b/chrome/browser/profiles/profile_io_data.h
@@ -170,9 +170,13 @@ class ProfileIOData {
return &safe_browsing_enabled_;
}
+#if defined(OS_ANDROID)
+ // TODO(feng): move the function to protected area.
+ // IsDataReductionProxyEnabled() should be used as public API.
BooleanPrefMember* data_reduction_proxy_enabled() const {
return &data_reduction_proxy_enabled_;
}
+#endif
BooleanPrefMember* printing_enabled() const {
return &printing_enabled_;
@@ -242,6 +246,12 @@ class ProfileIOData {
// should only be called from there.
bool GetMetricsEnabledStateOnIOThread() const;
+#if defined(OS_ANDROID)
+ // Returns whether or not data reduction proxy is enabled in the browser
+ // instance on which this profile resides.
+ bool IsDataReductionProxyEnabled() const;
+#endif
+
void set_client_cert_store_factory_for_testing(
const base::Callback<scoped_ptr<net::ClientCertStore>()>& factory) {
client_cert_store_factory_ = factory;
@@ -534,7 +544,9 @@ class ProfileIOData {
mutable BooleanPrefMember enable_do_not_track_;
mutable BooleanPrefMember force_safesearch_;
mutable BooleanPrefMember safe_browsing_enabled_;
+#if defined(OS_ANDROID)
mutable BooleanPrefMember data_reduction_proxy_enabled_;
+#endif
mutable BooleanPrefMember printing_enabled_;
mutable BooleanPrefMember sync_disabled_;
mutable BooleanPrefMember signin_allowed_;
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_io_data.cc » ('j') | chrome/browser/profiles/profile_io_data.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698