eaf2c61bef
* refactor: use gin in Promise * refactor: separate Promise impl that returns nothing * refactor: use Promise<void> for promise that returns nothing * fix: methods should be able to run on both browser and renderer process * fix: should not pass base::StringPiece across threads * refactor: no more need to use different ResolvePromise for empty Promise * refactor: move Promise to gin_helper
27 lines
727 B
C++
27 lines
727 B
C++
// 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 SHELL_BROWSER_UI_CERTIFICATE_TRUST_H_
|
|
#define SHELL_BROWSER_UI_CERTIFICATE_TRUST_H_
|
|
|
|
#include <string>
|
|
|
|
#include "base/memory/ref_counted.h"
|
|
#include "net/cert/x509_certificate.h"
|
|
#include "shell/common/gin_helper/promise.h"
|
|
|
|
namespace electron {
|
|
class NativeWindow;
|
|
} // namespace electron
|
|
|
|
namespace certificate_trust {
|
|
|
|
v8::Local<v8::Promise> ShowCertificateTrust(
|
|
electron::NativeWindow* parent_window,
|
|
const scoped_refptr<net::X509Certificate>& cert,
|
|
const std::string& message);
|
|
|
|
} // namespace certificate_trust
|
|
|
|
#endif // SHELL_BROWSER_UI_CERTIFICATE_TRUST_H_
|