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

Side by Side Diff: content/browser/ssl/ssl_client_auth_handler.cc

Issue 8340028: Salient parts of http://codereview.chromium.org/8392042/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « content/browser/ssl/ssl_client_auth_handler.h ('k') | content/browser/ssl/ssl_error_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "content/browser/ssl/ssl_client_auth_handler.h" 5 #include "content/browser/ssl/ssl_client_auth_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "content/browser/browser_thread.h"
9 #include "content/browser/renderer_host/resource_dispatcher_host.h" 8 #include "content/browser/renderer_host/resource_dispatcher_host.h"
10 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" 9 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h"
11 #include "content/browser/ssl/ssl_client_auth_notification_details.h" 10 #include "content/browser/ssl/ssl_client_auth_notification_details.h"
11 #include "content/public/browser/browser_thread.h"
12 #include "content/public/browser/content_browser_client.h" 12 #include "content/public/browser/content_browser_client.h"
13 #include "content/public/browser/notification_service.h" 13 #include "content/public/browser/notification_service.h"
14 #include "net/base/x509_certificate.h" 14 #include "net/base/x509_certificate.h"
15 #include "net/http/http_transaction_factory.h" 15 #include "net/http/http_transaction_factory.h"
16 #include "net/url_request/url_request.h" 16 #include "net/url_request/url_request.h"
17 #include "net/url_request/url_request_context.h" 17 #include "net/url_request/url_request_context.h"
18 18
19 SSLClientAuthHandler::SSLClientAuthHandler( 19 SSLClientAuthHandler::SSLClientAuthHandler(
20 net::URLRequest* request, 20 net::URLRequest* request,
21 net::SSLCertRequestInfo* cert_request_info) 21 net::SSLCertRequestInfo* cert_request_info)
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 notification_registrar_.Add( 150 notification_registrar_.Add(
151 this, content::NOTIFICATION_SSL_CLIENT_AUTH_CERT_SELECTED, 151 this, content::NOTIFICATION_SSL_CLIENT_AUTH_CERT_SELECTED,
152 content::Source<net::HttpNetworkSession>( 152 content::Source<net::HttpNetworkSession>(
153 handler_->http_network_session())); 153 handler_->http_network_session()));
154 } 154 }
155 155
156 void SSLClientAuthObserver::StopObserving() { 156 void SSLClientAuthObserver::StopObserving() {
157 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 157 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
158 notification_registrar_.RemoveAll(); 158 notification_registrar_.RemoveAll();
159 } 159 }
OLDNEW
« no previous file with comments | « content/browser/ssl/ssl_client_auth_handler.h ('k') | content/browser/ssl/ssl_error_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698