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 #include <vector> | 10 #include <vector> |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 | 376 |
377 bool initialized() const { | 377 bool initialized() const { |
378 return initialized_; | 378 return initialized_; |
379 } | 379 } |
380 | 380 |
381 // Destroys the ResourceContext first, to cancel any URLRequests that are | 381 // Destroys the ResourceContext first, to cancel any URLRequests that are |
382 // using it still, before we destroy the member variables that those | 382 // using it still, before we destroy the member variables that those |
383 // URLRequests may be accessing. | 383 // URLRequests may be accessing. |
384 void DestroyResourceContext(); | 384 void DestroyResourceContext(); |
385 | 385 |
386 // Creates network session and main network transaction factory. | 386 scoped_ptr<net::HttpNetworkSession> CreateHttpNetworkSession( |
| 387 const ProfileParams& profile_params) const; |
| 388 |
| 389 // Creates main network transaction factory. |
387 scoped_ptr<net::HttpCache> CreateMainHttpFactory( | 390 scoped_ptr<net::HttpCache> CreateMainHttpFactory( |
388 const ProfileParams* profile_params, | 391 net::HttpNetworkSession* session, |
389 net::HttpCache::BackendFactory* main_backend) const; | 392 net::HttpCache::BackendFactory* main_backend) const; |
390 | 393 |
391 // Creates network transaction factory. | 394 // Creates network transaction factory. |
392 scoped_ptr<net::HttpCache> CreateHttpFactory( | 395 scoped_ptr<net::HttpCache> CreateHttpFactory( |
393 net::HttpNetworkSession* shared_session, | 396 net::HttpNetworkSession* shared_session, |
394 net::HttpCache::BackendFactory* backend) const; | 397 net::HttpCache::BackendFactory* backend) const; |
395 | 398 |
396 void SetCookieSettingsForTesting( | 399 void SetCookieSettingsForTesting( |
397 content_settings::CookieSettings* cookie_settings); | 400 content_settings::CookieSettings* cookie_settings); |
398 | 401 |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 | 600 |
598 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 601 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
599 bool initialized_on_UI_thread_; | 602 bool initialized_on_UI_thread_; |
600 | 603 |
601 const Profile::ProfileType profile_type_; | 604 const Profile::ProfileType profile_type_; |
602 | 605 |
603 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 606 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
604 }; | 607 }; |
605 | 608 |
606 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 609 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
OLD | NEW |