| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_WEBAUTH_AUTHENTICATOR_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEBAUTH_AUTHENTICATOR_IMPL_H_ |
| 6 #define CONTENT_BROWSER_WEBAUTH_AUTHENTICATOR_IMPL_H_ | 6 #define CONTENT_BROWSER_WEBAUTH_AUTHENTICATOR_IMPL_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/cancelable_callback.h" | 10 #include "base/cancelable_callback.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 ~AuthenticatorImpl() override; | 33 ~AuthenticatorImpl() override; |
| 34 | 34 |
| 35 void set_connection_error_handler(const base::Closure& error_handler) { | 35 void set_connection_error_handler(const base::Closure& error_handler) { |
| 36 connection_error_handler_ = error_handler; | 36 connection_error_handler_ = error_handler; |
| 37 } | 37 } |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 explicit AuthenticatorImpl(RenderFrameHost* render_frame_host); | 40 explicit AuthenticatorImpl(RenderFrameHost* render_frame_host); |
| 41 | 41 |
| 42 // mojom:Authenticator | 42 // mojom:Authenticator |
| 43 void MakeCredential( | 43 void MakeCredential(webauth::mojom::MakeCredentialOptionsPtr options, |
| 44 webauth::mojom::RelyingPartyAccountPtr account, | 44 MakeCredentialCallback callback) override; |
| 45 std::vector<webauth::mojom::ScopedCredentialParametersPtr> parameters, | |
| 46 const std::vector<uint8_t>& challenge, | |
| 47 webauth::mojom::ScopedCredentialOptionsPtr options, | |
| 48 MakeCredentialCallback callback) override; | |
| 49 | 45 |
| 50 base::Closure connection_error_handler_; | 46 base::Closure connection_error_handler_; |
| 51 base::CancelableClosure timeout_callback_; | 47 base::CancelableClosure timeout_callback_; |
| 52 url::Origin caller_origin_; | 48 url::Origin caller_origin_; |
| 53 DISALLOW_COPY_AND_ASSIGN(AuthenticatorImpl); | 49 DISALLOW_COPY_AND_ASSIGN(AuthenticatorImpl); |
| 54 }; | 50 }; |
| 55 | 51 |
| 56 } // namespace content | 52 } // namespace content |
| 57 | 53 |
| 58 #endif // CONTENT_BROWSER_WEBAUTH_AUTHENTICATOR_IMPL_H_ | 54 #endif // CONTENT_BROWSER_WEBAUTH_AUTHENTICATOR_IMPL_H_ |
| OLD | NEW |