2017-04-03 15:05:24 -04:00
|
|
|
// Copyright (c) 2017 GitHub, Inc.
|
|
|
|
// Use of this source code is governed by the MIT license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2021-11-22 08:34:31 +01:00
|
|
|
#ifndef ELECTRON_SHELL_BROWSER_UI_CERTIFICATE_TRUST_H_
|
|
|
|
#define ELECTRON_SHELL_BROWSER_UI_CERTIFICATE_TRUST_H_
|
2017-04-03 15:05:24 -04:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include "net/cert/x509_certificate.h"
|
|
|
|
|
|
|
|
namespace electron {
|
|
|
|
class NativeWindow;
|
2021-07-01 17:51:37 -07:00
|
|
|
}
|
2017-04-03 15:05:24 -04:00
|
|
|
|
2024-07-29 12:42:57 -05:00
|
|
|
namespace v8 {
|
|
|
|
class Promise;
|
|
|
|
template <typename T>
|
|
|
|
class Local;
|
|
|
|
} // namespace v8
|
|
|
|
|
2017-04-03 15:05:24 -04:00
|
|
|
namespace certificate_trust {
|
|
|
|
|
2019-03-14 17:02:50 -07:00
|
|
|
v8::Local<v8::Promise> ShowCertificateTrust(
|
|
|
|
electron::NativeWindow* parent_window,
|
|
|
|
const scoped_refptr<net::X509Certificate>& cert,
|
|
|
|
const std::string& message);
|
2017-04-03 15:05:24 -04:00
|
|
|
|
|
|
|
} // namespace certificate_trust
|
|
|
|
|
2021-11-22 08:34:31 +01:00
|
|
|
#endif // ELECTRON_SHELL_BROWSER_UI_CERTIFICATE_TRUST_H_
|