| OLD | NEW |
| 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" | 8 #include "content/browser/browser_thread.h" |
| 9 #include "content/browser/content_browser_client.h" | |
| 10 #include "content/browser/renderer_host/resource_dispatcher_host.h" | 9 #include "content/browser/renderer_host/resource_dispatcher_host.h" |
| 11 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" | 10 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" |
| 12 #include "content/browser/ssl/ssl_client_auth_notification_details.h" | 11 #include "content/browser/ssl/ssl_client_auth_notification_details.h" |
| 13 #include "content/common/notification_service.h" | 12 #include "content/common/notification_service.h" |
| 13 #include "content/public/browser/content_browser_client.h" |
| 14 #include "net/base/x509_certificate.h" | 14 #include "net/base/x509_certificate.h" |
| 15 #include "net/url_request/url_request.h" | 15 #include "net/url_request/url_request.h" |
| 16 | 16 |
| 17 SSLClientAuthHandler::SSLClientAuthHandler( | 17 SSLClientAuthHandler::SSLClientAuthHandler( |
| 18 net::URLRequest* request, | 18 net::URLRequest* request, |
| 19 net::SSLCertRequestInfo* cert_request_info) | 19 net::SSLCertRequestInfo* cert_request_info) |
| 20 : request_(request), | 20 : request_(request), |
| 21 cert_request_info_(cert_request_info) { | 21 cert_request_info_(cert_request_info) { |
| 22 } | 22 } |
| 23 | 23 |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 141 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 142 notification_registrar_.Add( | 142 notification_registrar_.Add( |
| 143 this, content::NOTIFICATION_SSL_CLIENT_AUTH_CERT_SELECTED, | 143 this, content::NOTIFICATION_SSL_CLIENT_AUTH_CERT_SELECTED, |
| 144 NotificationService::AllSources()); | 144 NotificationService::AllSources()); |
| 145 } | 145 } |
| 146 | 146 |
| 147 void SSLClientAuthObserver::StopObserving() { | 147 void SSLClientAuthObserver::StopObserving() { |
| 148 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 148 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 149 notification_registrar_.RemoveAll(); | 149 notification_registrar_.RemoveAll(); |
| 150 } | 150 } |
| OLD | NEW |