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

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

Issue 734263003: Move data reduction proxy logic out of chrome and android webview network delegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test fix Created 6 years 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_impl_io_data.h
diff --git a/chrome/browser/profiles/profile_impl_io_data.h b/chrome/browser/profiles/profile_impl_io_data.h
index 50570632f33c081d7a377892094bd6e92a4c6090..383fc4077441835204392cd985a141cf39c2f8e1 100644
--- a/chrome/browser/profiles/profile_impl_io_data.h
+++ b/chrome/browser/profiles/profile_impl_io_data.h
@@ -24,6 +24,10 @@ namespace content {
class CookieCryptoDelegate;
} // namespace content
+namespace data_reduction_proxy {
+class DataReductionProxyNetworkDelegate;
+} // namespace data_reduction_proxy
+
namespace domain_reliability {
class DomainReliabilityMonitor;
} // namespace domain_reliability
@@ -155,10 +159,6 @@ class ProfileImplIOData : public ProfileIOData {
bool IsDataReductionProxyEnabled() const override;
- BooleanPrefMember* data_reduction_proxy_enabled() const {
- return &data_reduction_proxy_enabled_;
- }
-
private:
friend class base::RefCountedThreadSafe<ProfileImplIOData>;
@@ -182,10 +182,12 @@ class ProfileImplIOData : public ProfileIOData {
ProfileImplIOData();
~ProfileImplIOData() override;
- void InitializeInternal(ProfileParams* profile_params,
- content::ProtocolHandlerMap* protocol_handlers,
- content::URLRequestInterceptorScopedVector
- request_interceptors) const override;
+ void InitializeInternal(
+ scoped_ptr<ChromeNetworkDelegate> chrome_network_delegate,
+ ProfileParams* profile_params,
+ content::ProtocolHandlerMap* protocol_handlers,
+ content::URLRequestInterceptorScopedVector
+ request_interceptors) const override;
void InitializeExtensionsRequestContext(
ProfileParams* profile_params) const override;
net::URLRequestContext* InitializeAppRequestContext(
@@ -219,6 +221,9 @@ class ProfileImplIOData : public ProfileIOData {
void ClearNetworkingHistorySinceOnIOThread(base::Time time,
const base::Closure& completion);
+ mutable scoped_ptr<data_reduction_proxy::DataReductionProxyNetworkDelegate>
+ network_delegate_;
+
// Lazy initialization params.
mutable scoped_ptr<LazyParams> lazy_params_;
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_io_data.cc ('k') | chrome/browser/profiles/profile_impl_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698