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

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: Addressed code review comments by asvitkine@. 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 ffd1d79f23448872952455a3cb909d8cf6ad2fa4..324bf06d2aca8f84d8051f84cb19bd5eb2d3f48e 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"
@@ -341,14 +342,16 @@ 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 the given |profile| with |params| and
+ // |usage_stats| from |IOThread::Globals| on |IOThread|.
+ void SetupDataReductionProxyOnIOThread(IOThread* io_thread,
+ Profile* profile);
+
+ // Setup data reduction proxy for the given |profile|, |params|, and
+ // |usage_stats| on |UIThread|.
+ 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,

Powered by Google App Engine
This is Rietveld 408576698