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

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

Issue 10918279: Provide mutable members of UrlRequestContext via pure-virtual interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
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/cert_verifier.h" 8 #include "net/base/cert_verifier.h"
9 #include "net/base/host_resolver.h" 9 #include "net/base/host_resolver.h"
10 #include "net/base/net_log.h" 10 #include "net/base/net_log.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 context_->set_job_factory(job_factory); 115 context_->set_job_factory(job_factory);
116 job_factory_.reset(job_factory); 116 job_factory_.reset(job_factory);
117 } 117 }
118 118
119 void URLRequestContextStorage::set_throttler_manager( 119 void URLRequestContextStorage::set_throttler_manager(
120 URLRequestThrottlerManager* throttler_manager) { 120 URLRequestThrottlerManager* throttler_manager) {
121 context_->set_throttler_manager(throttler_manager); 121 context_->set_throttler_manager(throttler_manager);
122 throttler_manager_.reset(throttler_manager); 122 throttler_manager_.reset(throttler_manager);
123 } 123 }
124 124
125 void URLRequestContextStorage::set_http_user_agent_settings(
126 HttpUserAgentSettings* http_user_agent_settings) {
127 context_->set_http_user_agent_settings(http_user_agent_settings);
128 http_user_agent_settings_.reset(http_user_agent_settings);
129 }
130
125 } // namespace net 131 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698