1 // Copyright 2012 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CERTIFICATE_VIEWER_H_
6 #define CHROME_BROWSER_CERTIFICATE_VIEWER_H_
8 #include "ui/gfx/native_widget_types.h"
15 class X509Certificate;
17 // Opens a certificate viewer under |parent| to display |cert|.
18 void ShowCertificateViewer(content::WebContents* web_contents,
19 gfx::NativeWindow parent,
20 net::X509Certificate* cert);
22 // Opens a certificate viewer for client authentication under |parent| to
24 // TODO(https://crbug.com/1336065): remove this and use the internal cert
25 // viewer for client auth as well.
26 void ShowCertificateViewerForClientAuth(content::WebContents* web_contents,
27 gfx::NativeWindow parent,
28 net::X509Certificate* cert);
30 // Go through the motions but do not invoke the native API showing a modal
31 // interactive dialog on platforms where that results in hanging tests.
32 void MockCertificateViewerForTesting();
34 #endif // CHROME_BROWSER_CERTIFICATE_VIEWER_H_