| OLD | NEW |
| 1 // Copyright (c) 2010 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 #ifndef CHROME_BROWSER_CERTIFICATE_VIEWER_H_ | 5 #ifndef CHROME_BROWSER_CERTIFICATE_VIEWER_H_ |
| 6 #define CHROME_BROWSER_CERTIFICATE_VIEWER_H_ | 6 #define CHROME_BROWSER_CERTIFICATE_VIEWER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "ui/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
| 10 | 10 |
| 11 namespace net { | 11 namespace net { |
| 12 | 12 |
| 13 class X509Certificate; | 13 class X509Certificate; |
| 14 | 14 |
| 15 } // namespace net | 15 } // namespace net |
| 16 | 16 |
| 17 // Opens a certificate viewer under |parent| to display the certificate from | 17 // Opens a certificate viewer under |parent| to display the certificate from |
| 18 // the |CertStore| with id |cert_id|. | 18 // the |CertStore| with id |cert_id|. |
| 19 void ShowCertificateViewerByID(gfx::NativeWindow parent, int cert_id); | 19 void ShowCertificateViewerByID(gfx::NativeWindow parent, int cert_id); |
| 20 | 20 |
| 21 // Opens a certificate viewer under |parent| to display |cert|. | 21 // Opens a certificate viewer under |parent| to display |cert|. |
| 22 void ShowCertificateViewer(gfx::NativeWindow parent, | 22 void ShowCertificateViewer(gfx::NativeWindow parent, |
| 23 net::X509Certificate* cert); | 23 net::X509Certificate* cert); |
| 24 | 24 |
| 25 // Opens a certificate viewer under |parent| to display |cert| using a native |
| 26 // certificate viewer dialog. |
| 27 void ShowNativeCertificateViewer(gfx::NativeWindow parent, |
| 28 net::X509Certificate* cert); |
| 29 |
| 25 #endif // CHROME_BROWSER_CERTIFICATE_VIEWER_H_ | 30 #endif // CHROME_BROWSER_CERTIFICATE_VIEWER_H_ |
| OLD | NEW |