OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |