| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WEBUI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CERTIFICATE_VIEWER_WEBUI_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_CERTIFICATE_VIEWER_WEBUI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CERTIFICATE_VIEWER_WEBUI_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // Helper function to get the certificate index from |args|. Returns -1 if | 126 // Helper function to get the certificate index from |args|. Returns -1 if |
| 127 // the index is out of range. | 127 // the index is out of range. |
| 128 int GetCertificateIndex(const base::ListValue* args) const; | 128 int GetCertificateIndex(const base::ListValue* args) const; |
| 129 | 129 |
| 130 // The certificate being viewed. | 130 // The certificate being viewed. |
| 131 scoped_refptr<net::X509Certificate> cert_; | 131 scoped_refptr<net::X509Certificate> cert_; |
| 132 | 132 |
| 133 // The dialog. | 133 // The dialog. |
| 134 CertificateViewerModalDialog* dialog_; | 134 CertificateViewerModalDialog* dialog_; |
| 135 | 135 |
| 136 // The certificate chain. | 136 // The certificate chain. Does not take references, so only valid as long as |
| 137 // |cert_| is. |
| 137 net::X509Certificate::OSCertHandles cert_chain_; | 138 net::X509Certificate::OSCertHandles cert_chain_; |
| 138 | 139 |
| 139 DISALLOW_COPY_AND_ASSIGN(CertificateViewerDialogHandler); | 140 DISALLOW_COPY_AND_ASSIGN(CertificateViewerDialogHandler); |
| 140 }; | 141 }; |
| 141 | 142 |
| 142 #endif // CHROME_BROWSER_UI_WEBUI_CERTIFICATE_VIEWER_WEBUI_H_ | 143 #endif // CHROME_BROWSER_UI_WEBUI_CERTIFICATE_VIEWER_WEBUI_H_ |
| OLD | NEW |