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

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

Issue 1725123005: Passing in a Data Reduction Proxy Delegate from Cronet with Data Reduction Proxy Enabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding a comment Created 4 years, 9 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"
11 #include "net/base/proxy_delegate.h"
11 #include "net/base/sdch_manager.h" 12 #include "net/base/sdch_manager.h"
12 #include "net/cert/cert_verifier.h" 13 #include "net/cert/cert_verifier.h"
13 #include "net/cookies/cookie_store.h" 14 #include "net/cookies/cookie_store.h"
14 #include "net/dns/host_resolver.h" 15 #include "net/dns/host_resolver.h"
15 #include "net/ftp/ftp_transaction_factory.h" 16 #include "net/ftp/ftp_transaction_factory.h"
16 #include "net/http/http_auth_handler_factory.h" 17 #include "net/http/http_auth_handler_factory.h"
17 #include "net/http/http_server_properties.h" 18 #include "net/http/http_server_properties.h"
18 #include "net/http/http_transaction_factory.h" 19 #include "net/http/http_transaction_factory.h"
19 #include "net/log/net_log.h" 20 #include "net/log/net_log.h"
20 #include "net/proxy/proxy_service.h" 21 #include "net/proxy/proxy_service.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 context_->set_ssl_config_service(ssl_config_service); 75 context_->set_ssl_config_service(ssl_config_service);
75 ssl_config_service_ = ssl_config_service; 76 ssl_config_service_ = ssl_config_service;
76 } 77 }
77 78
78 void URLRequestContextStorage::set_network_delegate( 79 void URLRequestContextStorage::set_network_delegate(
79 scoped_ptr<NetworkDelegate> network_delegate) { 80 scoped_ptr<NetworkDelegate> network_delegate) {
80 context_->set_network_delegate(network_delegate.get()); 81 context_->set_network_delegate(network_delegate.get());
81 network_delegate_ = std::move(network_delegate); 82 network_delegate_ = std::move(network_delegate);
82 } 83 }
83 84
85 void URLRequestContextStorage::set_proxy_delegate(
86 scoped_ptr<ProxyDelegate> proxy_delegate) {
87 proxy_delegate_ = std::move(proxy_delegate);
88 }
89
84 void URLRequestContextStorage::set_http_server_properties( 90 void URLRequestContextStorage::set_http_server_properties(
85 scoped_ptr<HttpServerProperties> http_server_properties) { 91 scoped_ptr<HttpServerProperties> http_server_properties) {
86 http_server_properties_ = std::move(http_server_properties); 92 http_server_properties_ = std::move(http_server_properties);
87 context_->set_http_server_properties(http_server_properties_->GetWeakPtr()); 93 context_->set_http_server_properties(http_server_properties_->GetWeakPtr());
88 } 94 }
89 95
90 void URLRequestContextStorage::set_cookie_store(CookieStore* cookie_store) { 96 void URLRequestContextStorage::set_cookie_store(CookieStore* cookie_store) {
91 context_->set_cookie_store(cookie_store); 97 context_->set_cookie_store(cookie_store);
92 cookie_store_ = cookie_store; 98 cookie_store_ = cookie_store;
93 } 99 }
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 http_user_agent_settings_ = std::move(http_user_agent_settings); 139 http_user_agent_settings_ = std::move(http_user_agent_settings);
134 } 140 }
135 141
136 void URLRequestContextStorage::set_sdch_manager( 142 void URLRequestContextStorage::set_sdch_manager(
137 scoped_ptr<SdchManager> sdch_manager) { 143 scoped_ptr<SdchManager> sdch_manager) {
138 context_->set_sdch_manager(sdch_manager.get()); 144 context_->set_sdch_manager(sdch_manager.get());
139 sdch_manager_ = std::move(sdch_manager); 145 sdch_manager_ = std::move(sdch_manager);
140 } 146 }
141 147
142 } // namespace net 148 } // 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