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

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

Issue 382313003: Add data reduction functionality to all platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge to tip using git pull instead of gclient. 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..44bdc0b74a06b77ce2913a6e31895277c271f811 100644
--- a/chrome/browser/profiles/profile_io_data.h
+++ b/chrome/browser/profiles/profile_io_data.h
@@ -22,6 +22,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/storage_partition_descriptor.h"
#include "chrome/common/content_settings_types.h"
+#include "components/data_reduction_proxy/browser/data_reduction_proxy_settings.h"
#include "components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.h"
#include "content/public/browser/content_browser_client.h"
#include "content/public/browser/resource_context.h"
@@ -331,14 +332,15 @@ class ProfileIOData {
void InitializeOnUIThread(Profile* profile);
void ApplyProfileParamsToContext(ChromeURLRequestContext* context) const;
-#if defined(OS_ANDROID)
-#if defined(SPDY_PROXY_AUTH_ORIGIN)
- void SetDataReductionProxyUsageStatsOnIOThread(IOThread* io_thread,
- Profile* profile);
- void SetDataReductionProxyUsageStatsOnUIThread(Profile* profile,
+ // Setup data reduction proxy for given profile with params and usage_stats
+ // from io thread globals.
+ void SetupDataReductionProxyOnIOThread(IOThread* io_thread,
+ Profile* profile);
+
+ // Setup data reduction proxy for given profile, params, and usage_stats.
+ void SetupDataReductionProxyOnUIThread(Profile* profile,
+ data_reduction_proxy::DataReductionProxyParams* params,
data_reduction_proxy::DataReductionProxyUsageStats* usage_stats);
-#endif
-#endif
scoped_ptr<net::URLRequestJobFactory> SetUpJobFactoryDefaults(
scoped_ptr<net::URLRequestJobFactoryImpl> job_factory,
@@ -607,6 +609,9 @@ class ProfileIOData {
const Profile::ProfileType profile_type_;
+ scoped_ptr<data_reduction_proxy::DataReductionProxySettings>
+ data_reduction_proxy_settings_;
+
DISALLOW_COPY_AND_ASSIGN(ProfileIOData);
};

Powered by Google App Engine
This is Rietveld 408576698