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.
|
|
|
|
|
|
|
|
#ifndef ATOM_BROWSER_UI_CERTIFICATE_TRUST_H_
|
|
|
|
#define ATOM_BROWSER_UI_CERTIFICATE_TRUST_H_
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include "base/memory/ref_counted.h"
|
|
|
|
#include "net/cert/x509_certificate.h"
|
2019-06-19 20:46:59 +00:00
|
|
|
#include "shell/common/promise_util.h"
|
2017-04-03 19:05:24 +00:00
|
|
|
|
|
|
|
namespace atom {
|
|
|
|
class NativeWindow;
|
|
|
|
} // namespace atom
|
|
|
|
|
|
|
|
namespace certificate_trust {
|
|
|
|
|
2019-03-15 00:02:50 +00:00
|
|
|
v8::Local<v8::Promise> ShowCertificateTrust(
|
|
|
|
atom::NativeWindow* parent_window,
|
|
|
|
const scoped_refptr<net::X509Certificate>& cert,
|
|
|
|
const std::string& message);
|
2017-04-03 19:05:24 +00:00
|
|
|
|
|
|
|
} // namespace certificate_trust
|
|
|
|
|
|
|
|
#endif // ATOM_BROWSER_UI_CERTIFICATE_TRUST_H_
|