Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(367)

Side by Side Diff: chrome/browser/profiles/profile_io_data.h

Issue 2660983002: Change ProfileIOData::CreateHttpFactory to take an (Closed)
Patch Set: Get HttpTransactionFactory from URLRequestContext directly Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 void DestroyResourceContext(); 408 void DestroyResourceContext();
409 409
410 std::unique_ptr<net::HttpNetworkSession> CreateHttpNetworkSession( 410 std::unique_ptr<net::HttpNetworkSession> CreateHttpNetworkSession(
411 const ProfileParams& profile_params) const; 411 const ProfileParams& profile_params) const;
412 412
413 // Creates main network transaction factory. 413 // Creates main network transaction factory.
414 std::unique_ptr<net::HttpCache> CreateMainHttpFactory( 414 std::unique_ptr<net::HttpCache> CreateMainHttpFactory(
415 net::HttpNetworkSession* session, 415 net::HttpNetworkSession* session,
416 std::unique_ptr<net::HttpCache::BackendFactory> main_backend) const; 416 std::unique_ptr<net::HttpCache::BackendFactory> main_backend) const;
417 417
418 // Creates network transaction factory. 418 // Creates network transaction factory. The created factory will share
419 // HttpNetworkSession with |main_http_factory|.
419 std::unique_ptr<net::HttpCache> CreateHttpFactory( 420 std::unique_ptr<net::HttpCache> CreateHttpFactory(
420 net::HttpNetworkSession* shared_session, 421 net::HttpTransactionFactory* main_http_factory,
421 std::unique_ptr<net::HttpCache::BackendFactory> backend) const; 422 std::unique_ptr<net::HttpCache::BackendFactory> backend) const;
422 423
423 void SetCookieSettingsForTesting( 424 void SetCookieSettingsForTesting(
424 content_settings::CookieSettings* cookie_settings); 425 content_settings::CookieSettings* cookie_settings);
425 426
426 private: 427 private:
427 class ResourceContext : public content::ResourceContext { 428 class ResourceContext : public content::ResourceContext {
428 public: 429 public:
429 explicit ResourceContext(ProfileIOData* io_data); 430 explicit ResourceContext(ProfileIOData* io_data);
430 ~ResourceContext() override; 431 ~ResourceContext() override;
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 mutable std::unique_ptr<certificate_transparency::TreeStateTracker> 620 mutable std::unique_ptr<certificate_transparency::TreeStateTracker>
620 ct_tree_tracker_; 621 ct_tree_tracker_;
621 mutable base::Closure ct_tree_tracker_unregistration_; 622 mutable base::Closure ct_tree_tracker_unregistration_;
622 623
623 const Profile::ProfileType profile_type_; 624 const Profile::ProfileType profile_type_;
624 625
625 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); 626 DISALLOW_COPY_AND_ASSIGN(ProfileIOData);
626 }; 627 };
627 628
628 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 629 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl_io_data.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698