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

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

Issue 862133002: Update from https://crrev.com/312398 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 #include "net/url_request/url_request_context_storage.h" 5 #include "net/url_request/url_request_context_storage.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "net/base/net_log.h" 8 #include "net/base/net_log.h"
9 #include "net/base/network_delegate.h" 9 #include "net/base/network_delegate.h"
10 #include "net/base/sdch_manager.h" 10 #include "net/base/sdch_manager.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 context_->set_host_resolver(host_resolver.get()); 42 context_->set_host_resolver(host_resolver.get());
43 host_resolver_ = host_resolver.Pass(); 43 host_resolver_ = host_resolver.Pass();
44 } 44 }
45 45
46 void URLRequestContextStorage::set_cert_verifier(CertVerifier* cert_verifier) { 46 void URLRequestContextStorage::set_cert_verifier(CertVerifier* cert_verifier) {
47 context_->set_cert_verifier(cert_verifier); 47 context_->set_cert_verifier(cert_verifier);
48 cert_verifier_.reset(cert_verifier); 48 cert_verifier_.reset(cert_verifier);
49 } 49 }
50 50
51 void URLRequestContextStorage::set_channel_id_service( 51 void URLRequestContextStorage::set_channel_id_service(
52 ChannelIDService* channel_id_service) { 52 scoped_ptr<ChannelIDService> channel_id_service) {
53 context_->set_channel_id_service(channel_id_service); 53 context_->set_channel_id_service(channel_id_service.get());
54 channel_id_service_.reset(channel_id_service); 54 channel_id_service_ = channel_id_service.Pass();
55 } 55 }
56 56
57 void URLRequestContextStorage::set_fraudulent_certificate_reporter( 57 void URLRequestContextStorage::set_fraudulent_certificate_reporter(
58 FraudulentCertificateReporter* fraudulent_certificate_reporter) { 58 FraudulentCertificateReporter* fraudulent_certificate_reporter) {
59 context_->set_fraudulent_certificate_reporter( 59 context_->set_fraudulent_certificate_reporter(
60 fraudulent_certificate_reporter); 60 fraudulent_certificate_reporter);
61 fraudulent_certificate_reporter_.reset(fraudulent_certificate_reporter); 61 fraudulent_certificate_reporter_.reset(fraudulent_certificate_reporter);
62 } 62 }
63 63
64 void URLRequestContextStorage::set_http_auth_handler_factory( 64 void URLRequestContextStorage::set_http_auth_handler_factory(
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 http_user_agent_settings_.reset(http_user_agent_settings); 125 http_user_agent_settings_.reset(http_user_agent_settings);
126 } 126 }
127 127
128 void URLRequestContextStorage::set_sdch_manager( 128 void URLRequestContextStorage::set_sdch_manager(
129 scoped_ptr<SdchManager> sdch_manager) { 129 scoped_ptr<SdchManager> sdch_manager) {
130 context_->set_sdch_manager(sdch_manager.get()); 130 context_->set_sdch_manager(sdch_manager.get());
131 sdch_manager_ = sdch_manager.Pass(); 131 sdch_manager_ = sdch_manager.Pass();
132 } 132 }
133 133
134 } // namespace net 134 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698