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

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

Issue 2883143002: Reorder URLRequestContextStorage members. (Closed)
Patch Set: Reorder setters, too Created 3 years, 7 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 | « net/url_request/url_request_context_storage.h ('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 #include "net/url_request/url_request_context_storage.h" 5 #include "net/url_request/url_request_context_storage.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "net/base/network_delegate.h" 10 #include "net/base/network_delegate.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 context_->set_channel_id_service(channel_id_service.get()); 58 context_->set_channel_id_service(channel_id_service.get());
59 channel_id_service_ = std::move(channel_id_service); 59 channel_id_service_ = std::move(channel_id_service);
60 } 60 }
61 61
62 void URLRequestContextStorage::set_http_auth_handler_factory( 62 void URLRequestContextStorage::set_http_auth_handler_factory(
63 std::unique_ptr<HttpAuthHandlerFactory> http_auth_handler_factory) { 63 std::unique_ptr<HttpAuthHandlerFactory> http_auth_handler_factory) {
64 context_->set_http_auth_handler_factory(http_auth_handler_factory.get()); 64 context_->set_http_auth_handler_factory(http_auth_handler_factory.get());
65 http_auth_handler_factory_ = std::move(http_auth_handler_factory); 65 http_auth_handler_factory_ = std::move(http_auth_handler_factory);
66 } 66 }
67 67
68 void URLRequestContextStorage::set_proxy_delegate(
69 std::unique_ptr<ProxyDelegate> proxy_delegate) {
70 proxy_delegate_ = std::move(proxy_delegate);
71 }
72
73 void URLRequestContextStorage::set_network_delegate(
74 std::unique_ptr<NetworkDelegate> network_delegate) {
75 context_->set_network_delegate(network_delegate.get());
76 network_delegate_ = std::move(network_delegate);
77 }
78
68 void URLRequestContextStorage::set_proxy_service( 79 void URLRequestContextStorage::set_proxy_service(
69 std::unique_ptr<ProxyService> proxy_service) { 80 std::unique_ptr<ProxyService> proxy_service) {
70 context_->set_proxy_service(proxy_service.get()); 81 context_->set_proxy_service(proxy_service.get());
71 proxy_service_ = std::move(proxy_service); 82 proxy_service_ = std::move(proxy_service);
72 } 83 }
73 84
74 void URLRequestContextStorage::set_ssl_config_service( 85 void URLRequestContextStorage::set_ssl_config_service(
75 SSLConfigService* ssl_config_service) { 86 SSLConfigService* ssl_config_service) {
76 context_->set_ssl_config_service(ssl_config_service); 87 context_->set_ssl_config_service(ssl_config_service);
77 ssl_config_service_ = ssl_config_service; 88 ssl_config_service_ = ssl_config_service;
78 } 89 }
79 90
80 void URLRequestContextStorage::set_network_delegate(
81 std::unique_ptr<NetworkDelegate> network_delegate) {
82 context_->set_network_delegate(network_delegate.get());
83 network_delegate_ = std::move(network_delegate);
84 }
85
86 void URLRequestContextStorage::set_proxy_delegate(
87 std::unique_ptr<ProxyDelegate> proxy_delegate) {
88 proxy_delegate_ = std::move(proxy_delegate);
89 }
90
91 void URLRequestContextStorage::set_http_server_properties( 91 void URLRequestContextStorage::set_http_server_properties(
92 std::unique_ptr<HttpServerProperties> http_server_properties) { 92 std::unique_ptr<HttpServerProperties> http_server_properties) {
93 context_->set_http_server_properties(http_server_properties.get()); 93 context_->set_http_server_properties(http_server_properties.get());
94 http_server_properties_ = std::move(http_server_properties); 94 http_server_properties_ = std::move(http_server_properties);
95 } 95 }
96 96
97 void URLRequestContextStorage::set_cookie_store( 97 void URLRequestContextStorage::set_cookie_store(
98 std::unique_ptr<CookieStore> cookie_store) { 98 std::unique_ptr<CookieStore> cookie_store) {
99 context_->set_cookie_store(cookie_store.get()); 99 context_->set_cookie_store(cookie_store.get());
100 cookie_store_ = std::move(cookie_store); 100 cookie_store_ = std::move(cookie_store);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 sdch_manager_ = std::move(sdch_manager); 153 sdch_manager_ = std::move(sdch_manager);
154 } 154 }
155 155
156 void URLRequestContextStorage::set_reporting_service( 156 void URLRequestContextStorage::set_reporting_service(
157 std::unique_ptr<ReportingService> reporting_service) { 157 std::unique_ptr<ReportingService> reporting_service) {
158 context_->set_reporting_service(reporting_service.get()); 158 context_->set_reporting_service(reporting_service.get());
159 reporting_service_ = std::move(reporting_service); 159 reporting_service_ = std::move(reporting_service);
160 } 160 }
161 161
162 } // namespace net 162 } // namespace net
OLDNEW
« no previous file with comments | « net/url_request/url_request_context_storage.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698