certificate_trust.h 839 B

123456789101112131415161718192021222324252627282930
  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 "base/callback_forward.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. typedef base::Callback<void(void)> ShowTrustCallback;
  15. void ShowCertificateTrust(atom::NativeWindow* parent_window,
  16. const scoped_refptr<net::X509Certificate>& cert,
  17. const std::string& message,
  18. const ShowTrustCallback& callback);
  19. } // namespace certificate_trust
  20. #endif // ATOM_BROWSER_UI_CERTIFICATE_TRUST_H_