shell_trusted_vault_provider.h 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. // Copyright 2021 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 IOS_WEB_VIEW_SHELL_SHELL_TRUSTED_VAULT_PROVIDER_H_
  5. #define IOS_WEB_VIEW_SHELL_SHELL_TRUSTED_VAULT_PROVIDER_H_
  6. #import <ChromeWebView/ChromeWebView.h>
  7. #import "ios/web_view/shell/shell_auth_service.h"
  8. NS_ASSUME_NONNULL_BEGIN
  9. // Provides trusted vault functions to ChromeWebView.
  10. @interface ShellTrustedVaultProvider : NSObject <CWVTrustedVaultProvider>
  11. - (instancetype)initWithAuthService:(ShellAuthService*)authService
  12. NS_DESIGNATED_INITIALIZER;
  13. - (instancetype)init NS_UNAVAILABLE;
  14. - (void)showFetchKeysFlowForIdentity:(CWVIdentity*)identity
  15. fromViewController:(UIViewController*)viewController;
  16. - (void)showFixDegradedRecoverabilityFlowForIdentity:(CWVIdentity*)identity
  17. fromViewController:
  18. (UIViewController*)viewController;
  19. @end
  20. NS_ASSUME_NONNULL_END
  21. #endif // IOS_WEB_VIEW_SHELL_SHELL_TRUSTED_VAULT_PROVIDER_H_