Show a certificate trust panel
This commit is contained in:
parent
57edc28b0d
commit
64369cd07f
2 changed files with 81 additions and 0 deletions
33
atom/browser/api/atom_api_certificate_trust.h
Normal file
33
atom/browser/api/atom_api_certificate_trust.h
Normal file
|
@ -0,0 +1,33 @@
|
|||
// 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_API_ATOM_API_CERTIFICATE_TRUST_H_
|
||||
#define ATOM_BROWSER_API_ATOM_API_CERTIFICATE_TRUST_H_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "base/callback_forward.h"
|
||||
|
||||
namespace net {
|
||||
class X509Certificate;
|
||||
} // namespace net
|
||||
|
||||
namespace atom {
|
||||
|
||||
class NativeWindow;
|
||||
|
||||
namespace api {
|
||||
|
||||
typedef base::Callback<void(bool result)> ShowTrustCallback;
|
||||
|
||||
void ShowCertificateTrustUI(atom::NativeWindow* parent_window,
|
||||
const net::X509Certificate& cert,
|
||||
std::string message,
|
||||
const ShowTrustCallback& callback);
|
||||
|
||||
} // namespace api
|
||||
|
||||
} // namespace atom
|
||||
|
||||
#endif // ATOM_BROWSER_API_ATOM_API_CERTIFICATE_TRUST_H_
|
Loading…
Add table
Add a link
Reference in a new issue