certificate_trust.h 705 B

123456789101112131415161718192021222324252627
  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 ATOM_BROWSER_UI_CERTIFICATE_TRUST_H_
  5. #define ATOM_BROWSER_UI_CERTIFICATE_TRUST_H_
  6. #include <string>
  7. #include "atom/common/promise_util.h"
  8. #include "base/memory/ref_counted.h"
  9. #include "net/cert/x509_certificate.h"
  10. namespace atom {
  11. class NativeWindow;
  12. } // namespace atom
  13. namespace certificate_trust {
  14. v8::Local<v8::Promise> ShowCertificateTrust(
  15. atom::NativeWindow* parent_window,
  16. const scoped_refptr<net::X509Certificate>& cert,
  17. const std::string& message);
  18. } // namespace certificate_trust
  19. #endif // ATOM_BROWSER_UI_CERTIFICATE_TRUST_H_