| 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 "chrome/browser/ssl/ssl_client_auth_handler.h" | 5 #include "content/browser/ssl/ssl_client_auth_handler.h" | 
| 6 | 6 | 
| 7 #include "chrome/browser/ssl/ssl_client_auth_notification_details.h" |  | 
| 8 #include "chrome/browser/tab_contents/tab_contents_ssl_helper.h" | 7 #include "chrome/browser/tab_contents/tab_contents_ssl_helper.h" | 
| 9 #include "chrome/browser/tab_contents/tab_util.h" | 8 #include "chrome/browser/tab_contents/tab_util.h" | 
| 10 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 9 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 
| 11 #include "content/browser/browser_thread.h" | 10 #include "content/browser/browser_thread.h" | 
| 12 #include "content/browser/renderer_host/resource_dispatcher_host.h" | 11 #include "content/browser/renderer_host/resource_dispatcher_host.h" | 
| 13 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" | 12 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" | 
|  | 13 #include "content/browser/ssl/ssl_client_auth_notification_details.h" | 
| 14 #include "content/common/notification_service.h" | 14 #include "content/common/notification_service.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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 147   DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 147   DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 
| 148   notification_registrar_.Add(this, | 148   notification_registrar_.Add(this, | 
| 149                               NotificationType::SSL_CLIENT_AUTH_CERT_SELECTED, | 149                               NotificationType::SSL_CLIENT_AUTH_CERT_SELECTED, | 
| 150                               NotificationService::AllSources()); | 150                               NotificationService::AllSources()); | 
| 151 } | 151 } | 
| 152 | 152 | 
| 153 void SSLClientAuthObserver::StopObserving() { | 153 void SSLClientAuthObserver::StopObserving() { | 
| 154   DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 154   DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 
| 155   notification_registrar_.RemoveAll(); | 155   notification_registrar_.RemoveAll(); | 
| 156 } | 156 } | 
| OLD | NEW | 
|---|