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

Unified Diff: net/url_request/url_request_context.cc

Issue 6201005: Initial support for partitioning cookies for isolated apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge conflicts. Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/url_request/url_request_context.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.cc
diff --git a/net/url_request/url_request_context.cc b/net/url_request/url_request_context.cc
index 2f558ccdbd86c214e68499f243bb56623dd5bbca..7e026410b34fc33a152970d668f47573bbb47aa3 100644
--- a/net/url_request/url_request_context.cc
+++ b/net/url_request/url_request_context.cc
@@ -27,6 +27,29 @@ URLRequestContext::URLRequestContext()
ftp_transaction_factory_(NULL) {
}
+void URLRequestContext::CopyFrom(URLRequestContext* other) {
+ // Copy URLRequestContext parameters.
+ // Do not copy is_main_.
+ set_net_log(other->net_log());
+ set_host_resolver(other->host_resolver());
+ set_cert_verifier(other->cert_verifier());
+ set_dnsrr_resolver(other->dnsrr_resolver());
+ set_dns_cert_checker(other->dns_cert_checker());
+ set_http_auth_handler_factory(other->http_auth_handler_factory());
+ set_proxy_service(other->proxy_service());
+ set_ssl_config_service(other->ssl_config_service());
+ set_network_delegate(other->network_delegate());
+ set_cookie_store(other->cookie_store());
+ set_cookie_policy(other->cookie_policy());
+ set_transport_security_state(other->transport_security_state());
+ // FTPAuthCache is unique per context.
+ set_accept_language(other->accept_language());
+ set_accept_charset(other->accept_charset());
+ set_referrer_charset(other->referrer_charset());
+ set_http_transaction_factory(other->http_transaction_factory());
+ set_ftp_transaction_factory(other->ftp_transaction_factory());
+}
+
void URLRequestContext::set_cookie_store(CookieStore* cookie_store) {
cookie_store_ = cookie_store;
}
« no previous file with comments | « net/url_request/url_request_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698