[M120 Migration]Fix for crash during chrome exit
[platform/framework/web/chromium-efl.git] / chrome / browser / certificate_viewer.h
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.
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
10 namespace content {
11 class WebContents;
12 }
13
14 namespace net {
15 class X509Certificate;
16 }
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);
21
22 // Opens a certificate viewer for client authentication under |parent| to
23 // display |cert|.
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);
29
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();
33
34 #endif  // CHROME_BROWSER_CERTIFICATE_VIEWER_H_