blob: bf4bc7df3389be50d6b9c1fb524f85105eae3c90 [file] [log] [blame]
Avi Drissman4a8573c2022-09-09 19:35:541// Copyright 2012 The Chromium Authors
[email protected]df8e899b2011-02-22 22:58:222// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
[email protected]4f242962011-05-13 22:25:225#ifndef CHROME_BROWSER_CERTIFICATE_VIEWER_H_
6#define CHROME_BROWSER_CERTIFICATE_VIEWER_H_
[email protected]df8e899b2011-02-22 22:58:227
Mitsuru Oshima195405d2025-09-17 03:21:468#include "ui/gfx/native_ui_types.h"
[email protected]df8e899b2011-02-22 22:58:229
[email protected]4eb4ec02012-06-19 15:54:2110namespace content {
11class WebContents;
12}
13
[email protected]df8e899b2011-02-22 22:58:2214namespace net {
[email protected]df8e899b2011-02-22 22:58:2215class X509Certificate;
[email protected]60d0f74ac2013-10-19 18:23:4116}
[email protected]df8e899b2011-02-22 22:58:2217// Opens a certificate viewer under |parent| to display |cert|.
[email protected]4eb4ec02012-06-19 15:54:2118void ShowCertificateViewer(content::WebContents* web_contents,
19 gfx::NativeWindow parent,
[email protected]df8e899b2011-02-22 22:58:2220 net::X509Certificate* cert);
21
Matt Mueller659822e2e2022-06-23 00:35:3122// Opens a certificate viewer for client authentication under |parent| to
23// display |cert|.
Alison Gale079e6e952024-04-16 22:00:3024// TODO(crbug.com/40847472): remove this and use the internal cert
Matt Mueller659822e2e2022-06-23 00:35:3125// viewer for client auth as well.
26void ShowCertificateViewerForClientAuth(content::WebContents* web_contents,
27 gfx::NativeWindow parent,
28 net::X509Certificate* cert);
29
Gabriel Charettefe051042022-01-19 09:27:2930// 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.
32void MockCertificateViewerForTesting();
33
[email protected]4f242962011-05-13 22:25:2234#endif // CHROME_BROWSER_CERTIFICATE_VIEWER_H_