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_IO_DATA_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 prerender::PrerenderTracker* prerender_tracker; | 339 prerender::PrerenderTracker* prerender_tracker; |
340 }; | 340 }; |
341 | 341 |
342 explicit ProfileIOData(Profile::ProfileType profile_type); | 342 explicit ProfileIOData(Profile::ProfileType profile_type); |
343 | 343 |
344 static std::string GetSSLSessionCacheShard(); | 344 static std::string GetSSLSessionCacheShard(); |
345 | 345 |
346 void InitializeOnUIThread(Profile* profile); | 346 void InitializeOnUIThread(Profile* profile); |
347 void ApplyProfileParamsToContext(net::URLRequestContext* context) const; | 347 void ApplyProfileParamsToContext(net::URLRequestContext* context) const; |
348 | 348 |
349 #if defined(OS_ANDROID) | |
350 #if defined(SPDY_PROXY_AUTH_ORIGIN) | |
351 void SetDataReductionProxyUsageStatsOnIOThread(IOThread* io_thread, | |
352 Profile* profile); | |
353 void SetDataReductionProxyUsageStatsOnUIThread(Profile* profile, | |
354 data_reduction_proxy::DataReductionProxyUsageStats* usage_stats); | |
355 #endif | |
356 #endif | |
357 | |
358 scoped_ptr<net::URLRequestJobFactory> SetUpJobFactoryDefaults( | 349 scoped_ptr<net::URLRequestJobFactory> SetUpJobFactoryDefaults( |
359 scoped_ptr<net::URLRequestJobFactoryImpl> job_factory, | 350 scoped_ptr<net::URLRequestJobFactoryImpl> job_factory, |
360 content::URLRequestInterceptorScopedVector request_interceptors, | 351 content::URLRequestInterceptorScopedVector request_interceptors, |
361 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> | 352 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> |
362 protocol_handler_interceptor, | 353 protocol_handler_interceptor, |
363 net::NetworkDelegate* network_delegate, | 354 net::NetworkDelegate* network_delegate, |
364 net::FtpTransactionFactory* ftp_transaction_factory) const; | 355 net::FtpTransactionFactory* ftp_transaction_factory) const; |
365 | 356 |
366 // Called when the profile is destroyed. | 357 // Called when the profile is destroyed. |
367 void ShutdownOnUIThread(); | 358 void ShutdownOnUIThread(); |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 | 615 |
625 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 616 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
626 bool initialized_on_UI_thread_; | 617 bool initialized_on_UI_thread_; |
627 | 618 |
628 const Profile::ProfileType profile_type_; | 619 const Profile::ProfileType profile_type_; |
629 | 620 |
630 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 621 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
631 }; | 622 }; |
632 | 623 |
633 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 624 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
OLD | NEW |