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