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

Unified Diff: content/browser/loader/resource_loader.cc

Issue 12035105: Move client certificates retrieval logic out of the SSL sockets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Linux bots build (?) Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/loader/resource_loader.h ('k') | net/base/x509_certificate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/resource_loader.cc
diff --git a/content/browser/loader/resource_loader.cc b/content/browser/loader/resource_loader.cc
index a45229ee70ec4df164d8686cd132b5e862d3ae64..15f9cad8463793857c1b9099f1e99638d9ec79f9 100644
--- a/content/browser/loader/resource_loader.cc
+++ b/content/browser/loader/resource_loader.cc
@@ -21,6 +21,8 @@
#include "content/public/common/content_switches.h"
#include "content/public/common/resource_response.h"
#include "content/public/common/url_constants.h"
+#include "net/base/client_cert_store.h"
+#include "net/base/client_cert_store_impl.h"
#include "net/base/load_flags.h"
#include "net/http/http_response_headers.h"
#include "webkit/appcache/appcache_interceptor.h"
@@ -65,6 +67,9 @@ ResourceLoader::ResourceLoader(scoped_ptr<net::URLRequest> request,
last_upload_position_(0),
waiting_for_upload_progress_ack_(false),
is_transferring_(false),
+#if defined(USE_NSS) && !defined(OS_IOS)
Ryan Sleevi 2013/01/30 19:54:51 This is the wrong use of the define. USE_NSS == "U
ppi 2013/02/01 22:22:34 Thanks! Fixed in patch set 6.
+ client_cert_store_(new net::ClientCertStoreImpl()),
+#endif
weak_ptr_factory_(this) {
request_->set_delegate(this);
handler_->SetController(this);
@@ -269,6 +274,10 @@ void ResourceLoader::OnCertificateRequested(
return;
}
+#if defined(USE_NSS) && !defined(OS_IOS)
+ client_cert_store_->GetClientCerts(*cert_info, &cert_info->client_certs);
+#endif
+
if (cert_info->client_certs.empty()) {
// No need to query the user if there are no certs to choose from.
request_->ContinueWithCertificate(NULL);
« no previous file with comments | « content/browser/loader/resource_loader.h ('k') | net/base/x509_certificate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698