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

Side by Side Diff: chrome/browser/profiles/profile_impl_io_data.h

Issue 643443002: Move data_reduction_proxy_enabled pref to profile_impl_io_data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor whitespace change Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 isolated_media_request_context_getter_map_; 142 isolated_media_request_context_getter_map_;
143 ProfileImplIOData* const io_data_; 143 ProfileImplIOData* const io_data_;
144 144
145 Profile* const profile_; 145 Profile* const profile_;
146 146
147 mutable bool initialized_; 147 mutable bool initialized_;
148 148
149 DISALLOW_COPY_AND_ASSIGN(Handle); 149 DISALLOW_COPY_AND_ASSIGN(Handle);
150 }; 150 };
151 151
152 virtual bool IsDataReductionProxyEnabled() const OVERRIDE;
153
154 BooleanPrefMember* data_reduction_proxy_enabled() const {
155 return &data_reduction_proxy_enabled_;
156 }
157
152 private: 158 private:
153 friend class base::RefCountedThreadSafe<ProfileImplIOData>; 159 friend class base::RefCountedThreadSafe<ProfileImplIOData>;
154 160
155 struct LazyParams { 161 struct LazyParams {
156 LazyParams(); 162 LazyParams();
157 ~LazyParams(); 163 ~LazyParams();
158 164
159 // All of these parameters are intended to be read on the IO thread. 165 // All of these parameters are intended to be read on the IO thread.
160 base::FilePath cookie_path; 166 base::FilePath cookie_path;
161 base::FilePath channel_id_path; 167 base::FilePath channel_id_path;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 mutable scoped_ptr<net::URLRequestContext> media_request_context_; 234 mutable scoped_ptr<net::URLRequestContext> media_request_context_;
229 235
230 mutable scoped_ptr<net::URLRequestJobFactory> main_job_factory_; 236 mutable scoped_ptr<net::URLRequestJobFactory> main_job_factory_;
231 mutable scoped_ptr<net::URLRequestJobFactory> extensions_job_factory_; 237 mutable scoped_ptr<net::URLRequestJobFactory> extensions_job_factory_;
232 238
233 mutable scoped_ptr<domain_reliability::DomainReliabilityMonitor> 239 mutable scoped_ptr<domain_reliability::DomainReliabilityMonitor>
234 domain_reliability_monitor_; 240 domain_reliability_monitor_;
235 241
236 mutable scoped_ptr<net::SdchManager> sdch_manager_; 242 mutable scoped_ptr<net::SdchManager> sdch_manager_;
237 243
244 mutable BooleanPrefMember data_reduction_proxy_enabled_;
245
238 // Parameters needed for isolated apps. 246 // Parameters needed for isolated apps.
239 base::FilePath profile_path_; 247 base::FilePath profile_path_;
240 int app_cache_max_size_; 248 int app_cache_max_size_;
241 int app_media_cache_max_size_; 249 int app_media_cache_max_size_;
242 250
243 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); 251 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData);
244 }; 252 };
245 253
246 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ 254 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698