Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: chrome/browser/ui/webui/certificate_viewer_ui.h

Issue 7528027: Add export function to WebUI certificate viewer. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CERTIFICATE_VIEWER_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_CERTIFICATE_VIEWER_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CERTIFICATE_VIEWER_UI_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 12
13 // The WebUI for chrome://view-cert 13 // The WebUI for chrome://view-cert
14 class CertificateViewerUI : public HtmlDialogUI { 14 class CertificateViewerUI : public HtmlDialogUI {
15 public: 15 public:
16 explicit CertificateViewerUI(TabContents* contents); 16 explicit CertificateViewerUI(TabContents* contents);
17 virtual ~CertificateViewerUI(); 17 virtual ~CertificateViewerUI();
18 18
19 protected:
20 // Extracts the certificate details and returns them to the javascript
21 // function getCertificateInfo in a dictionary structure.
22 //
23 // The input is an X509Certificate pointer in hex encoded format in the first
24 // argument of the args list.
25 void RequestCertificateInfo(const ListValue* args);
26
27 // Get the details for a specific certificate in the certificate chain. The
28 // fields are returned as a tree structure with values for certain nodes.
29 ListValue* GetCertificateFields(net::X509Certificate::OSCertHandle cert);
30
31 DISALLOW_COPY_AND_ASSIGN(CertificateViewerUI); 19 DISALLOW_COPY_AND_ASSIGN(CertificateViewerUI);
32 }; 20 };
33 21
34 #endif // CHROME_BROWSER_UI_WEBUI_CERTIFICATE_VIEWER_UI_H_ 22 #endif // CHROME_BROWSER_UI_WEBUI_CERTIFICATE_VIEWER_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698