certificate_viewer.h revision 5821806d5e7f356e8fa4b058a389a808ea183019
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
3// found in the LICENSE file.
4
5#ifndef CHROME_BROWSER_CERTIFICATE_VIEWER_H_
6#define CHROME_BROWSER_CERTIFICATE_VIEWER_H_
7
8#include "ui/gfx/native_widget_types.h"
9
10namespace content {
11class WebContents;
12}
13
14namespace net {
15
16class X509Certificate;
17
18}  // namespace net
19
20// Opens a certificate viewer under |parent| to display the certificate from
21// the |CertStore| with id |cert_id|.
22void ShowCertificateViewerByID(content::WebContents* web_contents,
23                               gfx::NativeWindow parent,
24                               int cert_id);
25
26// Opens a certificate viewer under |parent| to display |cert|.
27void ShowCertificateViewer(content::WebContents* web_contents,
28                           gfx::NativeWindow parent,
29                           net::X509Certificate* cert);
30
31#endif  // CHROME_BROWSER_CERTIFICATE_VIEWER_H_
32