| 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") | 9 #pragma comment(lib, "cryptui.lib") |
| 10 | 10 |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "net/base/x509_certificate.h" | 12 #include "net/cert/x509_certificate.h" |
| 13 | 13 |
| 14 #if defined(USE_AURA) | 14 #if defined(USE_AURA) |
| 15 #include "chrome/browser/ui/host_desktop.h" | 15 #include "chrome/browser/ui/host_desktop.h" |
| 16 #include "ui/aura/root_window.h" | 16 #include "ui/aura/root_window.h" |
| 17 #include "ui/aura/window.h" | 17 #include "ui/aura/window.h" |
| 18 #endif | 18 #endif |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 void ShowCertificateViewerImpl(content::WebContents* web_contents, | 22 void ShowCertificateViewerImpl(content::WebContents* web_contents, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 NOTIMPLEMENTED(); | 61 NOTIMPLEMENTED(); |
| 62 } | 62 } |
| 63 } | 63 } |
| 64 #else | 64 #else |
| 65 void ShowCertificateViewer(content::WebContents* web_contents, | 65 void ShowCertificateViewer(content::WebContents* web_contents, |
| 66 gfx::NativeWindow parent, | 66 gfx::NativeWindow parent, |
| 67 net::X509Certificate* cert) { | 67 net::X509Certificate* cert) { |
| 68 ShowCertificateViewerImpl(web_contents, parent, cert); | 68 ShowCertificateViewerImpl(web_contents, parent, cert); |
| 69 } | 69 } |
| 70 #endif | 70 #endif |
| OLD | NEW |