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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy; | 169 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy; |
170 }; | 170 }; |
171 | 171 |
172 ProfileImplIOData(); | 172 ProfileImplIOData(); |
173 virtual ~ProfileImplIOData(); | 173 virtual ~ProfileImplIOData(); |
174 | 174 |
175 virtual void InitializeInternal( | 175 virtual void InitializeInternal( |
176 ProfileParams* profile_params, | 176 ProfileParams* profile_params, |
177 content::ProtocolHandlerMap* protocol_handlers, | 177 content::ProtocolHandlerMap* protocol_handlers, |
178 content::URLRequestInterceptorScopedVector request_interceptors) | 178 content::URLRequestInterceptorScopedVector request_interceptors) |
179 const OVERRIDE; | 179 const override; |
180 virtual void InitializeExtensionsRequestContext( | 180 virtual void InitializeExtensionsRequestContext( |
181 ProfileParams* profile_params) const OVERRIDE; | 181 ProfileParams* profile_params) const override; |
182 virtual net::URLRequestContext* InitializeAppRequestContext( | 182 virtual net::URLRequestContext* InitializeAppRequestContext( |
183 net::URLRequestContext* main_context, | 183 net::URLRequestContext* main_context, |
184 const StoragePartitionDescriptor& partition_descriptor, | 184 const StoragePartitionDescriptor& partition_descriptor, |
185 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> | 185 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> |
186 protocol_handler_interceptor, | 186 protocol_handler_interceptor, |
187 content::ProtocolHandlerMap* protocol_handlers, | 187 content::ProtocolHandlerMap* protocol_handlers, |
188 content::URLRequestInterceptorScopedVector request_interceptors) | 188 content::URLRequestInterceptorScopedVector request_interceptors) |
189 const OVERRIDE; | 189 const override; |
190 virtual net::URLRequestContext* InitializeMediaRequestContext( | 190 virtual net::URLRequestContext* InitializeMediaRequestContext( |
191 net::URLRequestContext* original_context, | 191 net::URLRequestContext* original_context, |
192 const StoragePartitionDescriptor& partition_descriptor) const OVERRIDE; | 192 const StoragePartitionDescriptor& partition_descriptor) const override; |
193 virtual net::URLRequestContext* | 193 virtual net::URLRequestContext* |
194 AcquireMediaRequestContext() const OVERRIDE; | 194 AcquireMediaRequestContext() const override; |
195 virtual net::URLRequestContext* AcquireIsolatedAppRequestContext( | 195 virtual net::URLRequestContext* AcquireIsolatedAppRequestContext( |
196 net::URLRequestContext* main_context, | 196 net::URLRequestContext* main_context, |
197 const StoragePartitionDescriptor& partition_descriptor, | 197 const StoragePartitionDescriptor& partition_descriptor, |
198 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> | 198 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> |
199 protocol_handler_interceptor, | 199 protocol_handler_interceptor, |
200 content::ProtocolHandlerMap* protocol_handlers, | 200 content::ProtocolHandlerMap* protocol_handlers, |
201 content::URLRequestInterceptorScopedVector request_interceptors) | 201 content::URLRequestInterceptorScopedVector request_interceptors) |
202 const OVERRIDE; | 202 const override; |
203 virtual net::URLRequestContext* | 203 virtual net::URLRequestContext* |
204 AcquireIsolatedMediaRequestContext( | 204 AcquireIsolatedMediaRequestContext( |
205 net::URLRequestContext* app_context, | 205 net::URLRequestContext* app_context, |
206 const StoragePartitionDescriptor& partition_descriptor) | 206 const StoragePartitionDescriptor& partition_descriptor) |
207 const OVERRIDE; | 207 const override; |
208 | 208 |
209 // Deletes all network related data since |time|. It deletes transport | 209 // Deletes all network related data since |time|. It deletes transport |
210 // security state since |time| and also deletes HttpServerProperties data. | 210 // security state since |time| and also deletes HttpServerProperties data. |
211 // Works asynchronously, however if the |completion| callback is non-null, | 211 // Works asynchronously, however if the |completion| callback is non-null, |
212 // it will be posted on the UI thread once the removal process completes. | 212 // it will be posted on the UI thread once the removal process completes. |
213 void ClearNetworkingHistorySinceOnIOThread(base::Time time, | 213 void ClearNetworkingHistorySinceOnIOThread(base::Time time, |
214 const base::Closure& completion); | 214 const base::Closure& completion); |
215 | 215 |
216 // Lazy initialization params. | 216 // Lazy initialization params. |
217 mutable scoped_ptr<LazyParams> lazy_params_; | 217 mutable scoped_ptr<LazyParams> lazy_params_; |
(...skipping 19 matching lines...) Expand all Loading... |
237 | 237 |
238 // Parameters needed for isolated apps. | 238 // Parameters needed for isolated apps. |
239 base::FilePath profile_path_; | 239 base::FilePath profile_path_; |
240 int app_cache_max_size_; | 240 int app_cache_max_size_; |
241 int app_media_cache_max_size_; | 241 int app_media_cache_max_size_; |
242 | 242 |
243 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); | 243 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); |
244 }; | 244 }; |
245 | 245 |
246 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ | 246 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ |
OLD | NEW |