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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/url_request/url_request_context_storage.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_context_storage.cc
diff --git a/net/url_request/url_request_context_storage.cc b/net/url_request/url_request_context_storage.cc
index 399bc47caabc8ac47252e5910948fcb4a94917ac..29251077dd1394f8705439d0703621582869a419 100644
--- a/net/url_request/url_request_context_storage.cc
+++ b/net/url_request/url_request_context_storage.cc
@@ -1,20 +1,21 @@
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/url_request/url_request_context_storage.h"
#include <utility>
#include "base/logging.h"
#include "net/base/network_delegate.h"
+#include "net/base/proxy_delegate.h"
#include "net/base/sdch_manager.h"
#include "net/cert/cert_verifier.h"
#include "net/cookies/cookie_store.h"
#include "net/dns/host_resolver.h"
#include "net/ftp/ftp_transaction_factory.h"
#include "net/http/http_auth_handler_factory.h"
#include "net/http/http_server_properties.h"
#include "net/http/http_transaction_factory.h"
#include "net/log/net_log.h"
#include "net/proxy/proxy_service.h"
@@ -74,20 +75,25 @@ void URLRequestContextStorage::set_ssl_config_service(
context_->set_ssl_config_service(ssl_config_service);
ssl_config_service_ = ssl_config_service;
}
void URLRequestContextStorage::set_network_delegate(
scoped_ptr<NetworkDelegate> network_delegate) {
context_->set_network_delegate(network_delegate.get());
network_delegate_ = std::move(network_delegate);
}
+void URLRequestContextStorage::set_proxy_delegate(
+ scoped_ptr<ProxyDelegate> proxy_delegate) {
+ proxy_delegate_ = std::move(proxy_delegate);
+}
+
void URLRequestContextStorage::set_http_server_properties(
scoped_ptr<HttpServerProperties> http_server_properties) {
http_server_properties_ = std::move(http_server_properties);
context_->set_http_server_properties(http_server_properties_->GetWeakPtr());
}
void URLRequestContextStorage::set_cookie_store(CookieStore* cookie_store) {
context_->set_cookie_store(cookie_store);
cookie_store_ = cookie_store;
}
« 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