2017-04-03 19:05:24 +00: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.
|
|
|
|
|
2019-06-19 20:56:58 +00:00
|
|
|
#ifndef SHELL_BROWSER_UI_CERTIFICATE_TRUST_H_
|
|
|
|
#define SHELL_BROWSER_UI_CERTIFICATE_TRUST_H_
|
2017-04-03 19:05:24 +00:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include "base/memory/ref_counted.h"
|
|
|
|
#include "net/cert/x509_certificate.h"
|
2020-06-22 16:35:24 +00:00
|
|
|
#include "shell/browser/javascript_environment.h"
|
2019-11-01 06:10:32 +00:00
|
|
|
#include "shell/common/gin_helper/promise.h"
|
2017-04-03 19:05:24 +00:00
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
namespace electron {
|
2017-04-03 19:05:24 +00:00
|
|
|
class NativeWindow;
|
2019-06-19 21:23:04 +00:00
|
|
|
} // namespace electron
|
2017-04-03 19:05:24 +00:00
|
|
|
|
|
|
|
namespace certificate_trust {
|
|
|
|
|
2019-03-15 00:02:50 +00:00
|
|
|
v8::Local<v8::Promise> ShowCertificateTrust(
|
2019-06-19 21:23:04 +00:00
|
|
|
electron::NativeWindow* parent_window,
|
2019-03-15 00:02:50 +00:00
|
|
|
const scoped_refptr<net::X509Certificate>& cert,
|
|
|
|
const std::string& message);
|
2017-04-03 19:05:24 +00:00
|
|
|
|
|
|
|
} // namespace certificate_trust
|
|
|
|
|
2019-06-19 20:56:58 +00:00
|
|
|
#endif // SHELL_BROWSER_UI_CERTIFICATE_TRUST_H_
|