OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_client_certificate_selector.h" | 5 #include "chrome/browser/ssl_client_certificate_selector.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <cryptuiapi.h> | 8 #include <cryptuiapi.h> |
9 #pragma comment(lib, "cryptui.lib") | 9 #pragma comment(lib, "cryptui.lib") |
10 | 10 |
11 #include "app/l10n_util.h" | 11 #include "app/l10n_util.h" |
12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
14 #include "chrome/browser/browser_list.h" | 14 #include "chrome/browser/browser_list.h" |
15 #include "chrome/browser/browser_thread.h" | |
16 #include "chrome/browser/browser_window.h" | 15 #include "chrome/browser/browser_window.h" |
17 #include "chrome/browser/ssl/ssl_client_auth_handler.h" | 16 #include "chrome/browser/ssl/ssl_client_auth_handler.h" |
18 #include "chrome/browser/tab_contents/tab_contents.h" | 17 #include "chrome/browser/tab_contents/tab_contents.h" |
19 #include "chrome/browser/ui/browser.h" | 18 #include "chrome/browser/ui/browser.h" |
20 #include "grit/generated_resources.h" | 19 #include "grit/generated_resources.h" |
21 #include "net/url_request/url_request.h" | 20 #include "net/url_request/url_request.h" |
22 | 21 |
23 namespace browser { | 22 namespace browser { |
24 | 23 |
25 void ShowSSLClientCertificateSelector( | 24 void ShowSSLClientCertificateSelector( |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 net::X509Certificate::FreeOSCertHandle(cert_context); | 63 net::X509Certificate::FreeOSCertHandle(cert_context); |
65 } | 64 } |
66 | 65 |
67 ok = CertCloseStore(client_certs, CERT_CLOSE_STORE_CHECK_FLAG); | 66 ok = CertCloseStore(client_certs, CERT_CLOSE_STORE_CHECK_FLAG); |
68 DCHECK(ok); | 67 DCHECK(ok); |
69 | 68 |
70 delegate->CertificateSelected(cert); | 69 delegate->CertificateSelected(cert); |
71 } | 70 } |
72 | 71 |
73 } // namespace browser | 72 } // namespace browser |
OLD | NEW |