certificate_viewer.h 718 B

1234567891011121314151617181920212223
  1. // Copyright 2020 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef COMPONENTS_REMOTE_COCOA_APP_SHIM_CERTIFICATE_VIEWER_H_
  5. #define COMPONENTS_REMOTE_COCOA_APP_SHIM_CERTIFICATE_VIEWER_H_
  6. #import <Cocoa/Cocoa.h>
  7. namespace net {
  8. class X509Certificate;
  9. }
  10. namespace remote_cocoa {
  11. // Shows the platform certificate viewer, displaying |certificate| and parented
  12. // to |owning_window|.
  13. void ShowCertificateViewerForWindow(NSWindow* owning_window,
  14. net::X509Certificate* ceriticate);
  15. } // namespace remote_cocoa
  16. #endif // COMPONENTS_REMOTE_COCOA_APP_SHIM_CERTIFICATE_VIEWER_H_