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 #ifndef CHROME_BROWSER_UI_WEBUI_CERTIFICATE_VIEWER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CERTIFICATE_VIEWER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_CERTIFICATE_VIEWER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CERTIFICATE_VIEWER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/browser/ui/webui/html_dialog_ui.h" | 10 #include "chrome/browser/ui/webui/html_dialog_ui.h" |
11 #include "net/base/x509_certificate.h" | 11 #include "net/base/x509_certificate.h" |
12 #include "ui/gfx/native_widget_types.h" | 12 #include "ui/gfx/native_widget_types.h" |
13 | 13 |
14 // Displays the WebUI certificate viewer dialog for the passed in certificate. | 14 // Displays the native or WebUI certificate viewer dialog for the given |
| 15 // certificate. |
15 void ShowCertificateViewer(gfx::NativeWindow parent, | 16 void ShowCertificateViewer(gfx::NativeWindow parent, |
16 net::X509Certificate*); | 17 net::X509Certificate*); |
17 | 18 |
18 // Dialog for displaying detailed certificate information. This is used in linux | 19 // Dialog for displaying detailed certificate information. This is used in linux |
19 // and chromeos builds to display detailed information in a floating dialog when | 20 // and chromeos builds to display detailed information in a floating dialog when |
20 // the user clicks on "Certificate Information" from the lock icon of a web site | 21 // the user clicks on "Certificate Information" from the lock icon of a web site |
21 // or "View" from the Certificate Manager. | 22 // or "View" from the Certificate Manager. |
22 class CertificateViewerDialog : private HtmlDialogUIDelegate { | 23 class CertificateViewerDialog : private HtmlDialogUIDelegate { |
23 public: | 24 public: |
24 // Shows the certificate viewer dialog for the passed in certificate. | 25 // Shows the certificate viewer dialog for the passed in certificate. |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 // The parent window. | 93 // The parent window. |
93 gfx::NativeWindow parent_; | 94 gfx::NativeWindow parent_; |
94 | 95 |
95 // The certificate chain. | 96 // The certificate chain. |
96 net::X509Certificate::OSCertHandles cert_chain_; | 97 net::X509Certificate::OSCertHandles cert_chain_; |
97 | 98 |
98 DISALLOW_COPY_AND_ASSIGN(CertificateViewerDialogHandler); | 99 DISALLOW_COPY_AND_ASSIGN(CertificateViewerDialogHandler); |
99 }; | 100 }; |
100 | 101 |
101 #endif // CHROME_BROWSER_UI_WEBUI_CERTIFICATE_VIEWER_H_ | 102 #endif // CHROME_BROWSER_UI_WEBUI_CERTIFICATE_VIEWER_H_ |
OLD | NEW |