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