| 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/certificate_viewer.h" | 5 #include "chrome/browser/certificate_viewer.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") | |
| 10 | 9 |
| 11 #include "base/bind.h" | 10 #include "base/bind.h" |
| 12 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
| 13 #include "base/location.h" | 12 #include "base/location.h" |
| 14 #include "base/logging.h" | 13 #include "base/logging.h" |
| 15 #include "base/macros.h" | 14 #include "base/macros.h" |
| 16 #include "base/message_loop/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
| 17 #include "base/task_runner.h" | 16 #include "base/task_runner.h" |
| 18 #include "base/threading/thread.h" | 17 #include "base/threading/thread.h" |
| 19 #include "net/cert/x509_certificate.h" | 18 #include "net/cert/x509_certificate.h" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 } // namespace | 84 } // namespace |
| 86 | 85 |
| 87 void ShowCertificateViewer(content::WebContents* web_contents, | 86 void ShowCertificateViewer(content::WebContents* web_contents, |
| 88 gfx::NativeWindow parent, | 87 gfx::NativeWindow parent, |
| 89 net::X509Certificate* cert) { | 88 net::X509Certificate* cert) { |
| 90 CertificateViewerDialog* dialog = new CertificateViewerDialog; | 89 CertificateViewerDialog* dialog = new CertificateViewerDialog; |
| 91 dialog->Show( | 90 dialog->Show( |
| 92 parent->GetHost()->GetAcceleratedWidget(), cert, | 91 parent->GetHost()->GetAcceleratedWidget(), cert, |
| 93 base::Bind(&base::DeletePointer<CertificateViewerDialog>, dialog)); | 92 base::Bind(&base::DeletePointer<CertificateViewerDialog>, dialog)); |
| 94 } | 93 } |
| OLD | NEW |