certificate_trust.h 781 B

12345678910111213141516171819202122232425262728
  1. // Copyright (c) 2017 GitHub, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #ifndef ELECTRON_SHELL_BROWSER_UI_CERTIFICATE_TRUST_H_
  5. #define ELECTRON_SHELL_BROWSER_UI_CERTIFICATE_TRUST_H_
  6. #include <string>
  7. #include "base/memory/ref_counted.h"
  8. #include "net/cert/x509_certificate.h"
  9. #include "shell/browser/javascript_environment.h"
  10. #include "shell/common/gin_helper/promise.h"
  11. namespace electron {
  12. class NativeWindow;
  13. }
  14. namespace certificate_trust {
  15. v8::Local<v8::Promise> ShowCertificateTrust(
  16. electron::NativeWindow* parent_window,
  17. const scoped_refptr<net::X509Certificate>& cert,
  18. const std::string& message);
  19. } // namespace certificate_trust
  20. #endif // ELECTRON_SHELL_BROWSER_UI_CERTIFICATE_TRUST_H_