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

Side by Side Diff: net/url_request/url_request_context_storage.h

Issue 2660983002: Change ProfileIOData::CreateHttpFactory to take an (Closed)
Patch Set: rebase after upstream landed 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
« no previous file with comments | « chrome/browser/profiles/profile_io_data.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_
6 #define NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 void set_http_user_agent_settings( 78 void set_http_user_agent_settings(
79 std::unique_ptr<HttpUserAgentSettings> http_user_agent_settings); 79 std::unique_ptr<HttpUserAgentSettings> http_user_agent_settings);
80 void set_sdch_manager(std::unique_ptr<SdchManager> sdch_manager); 80 void set_sdch_manager(std::unique_ptr<SdchManager> sdch_manager);
81 81
82 // Everything else can be access through the URLRequestContext, but this 82 // Everything else can be access through the URLRequestContext, but this
83 // cannot. Having an accessor for it makes usage a little cleaner. 83 // cannot. Having an accessor for it makes usage a little cleaner.
84 HttpNetworkSession* http_network_session() const { 84 HttpNetworkSession* http_network_session() const {
85 return http_network_session_.get(); 85 return http_network_session_.get();
86 } 86 }
87 87
88 HttpTransactionFactory* http_transaction_factory() const {
89 return http_transaction_factory_.get();
90 }
mmenke 2017/01/31 15:17:59 Not needed - can just get this from the URLRequest
Zhongyi Shi 2017/01/31 18:38:21 Done.
91
88 private: 92 private:
89 // Not owned. 93 // Not owned.
90 URLRequestContext* const context_; 94 URLRequestContext* const context_;
91 95
92 // Owned members. 96 // Owned members.
93 std::unique_ptr<NetLog> net_log_; 97 std::unique_ptr<NetLog> net_log_;
94 std::unique_ptr<HostResolver> host_resolver_; 98 std::unique_ptr<HostResolver> host_resolver_;
95 std::unique_ptr<CertVerifier> cert_verifier_; 99 std::unique_ptr<CertVerifier> cert_verifier_;
96 // The ChannelIDService must outlive the HttpTransactionFactory. 100 // The ChannelIDService must outlive the HttpTransactionFactory.
97 std::unique_ptr<ChannelIDService> channel_id_service_; 101 std::unique_ptr<ChannelIDService> channel_id_service_;
(...skipping 18 matching lines...) Expand all
116 std::unique_ptr<URLRequestJobFactory> job_factory_; 120 std::unique_ptr<URLRequestJobFactory> job_factory_;
117 std::unique_ptr<URLRequestThrottlerManager> throttler_manager_; 121 std::unique_ptr<URLRequestThrottlerManager> throttler_manager_;
118 std::unique_ptr<SdchManager> sdch_manager_; 122 std::unique_ptr<SdchManager> sdch_manager_;
119 123
120 DISALLOW_COPY_AND_ASSIGN(URLRequestContextStorage); 124 DISALLOW_COPY_AND_ASSIGN(URLRequestContextStorage);
121 }; 125 };
122 126
123 } // namespace net 127 } // namespace net
124 128
125 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_ 129 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_io_data.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698