| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CredentialManagerClient_h | 5 #ifndef CredentialManagerClient_h |
| 6 #define CredentialManagerClient_h | 6 #define CredentialManagerClient_h |
| 7 | 7 |
| 8 #include "core/page/Page.h" | 8 #include "core/page/Page.h" |
| 9 #include "modules/ModulesExport.h" | 9 #include "modules/ModulesExport.h" |
| 10 #include "platform/Supplementable.h" | 10 #include "platform/Supplementable.h" |
| 11 #include "public/platform/WebCredentialManagerClient.h" | 11 #include "public/platform/WebCredentialManagerClient.h" |
| 12 #include "public/platform/WebCredentialMediationRequirement.h" |
| 12 #include "public/platform/WebVector.h" | 13 #include "public/platform/WebVector.h" |
| 13 | 14 |
| 14 namespace blink { | 15 namespace blink { |
| 15 | 16 |
| 16 class ExecutionContext; | 17 class ExecutionContext; |
| 17 class Page; | 18 class Page; |
| 18 class WebCredential; | 19 class WebCredential; |
| 19 class WebURL; | 20 class WebURL; |
| 20 | 21 |
| 21 // CredentialManagerClient lives as a supplement to Page, and wraps the | 22 // CredentialManagerClient lives as a supplement to Page, and wraps the |
| (...skipping 16 matching lines...) Expand all Loading... |
| 38 // Ownership of the callback is transferred to the callee for each of | 39 // Ownership of the callback is transferred to the callee for each of |
| 39 // the following methods. | 40 // the following methods. |
| 40 virtual void DispatchFailedSignIn( | 41 virtual void DispatchFailedSignIn( |
| 41 const WebCredential&, | 42 const WebCredential&, |
| 42 WebCredentialManagerClient::NotificationCallbacks*); | 43 WebCredentialManagerClient::NotificationCallbacks*); |
| 43 virtual void DispatchStore( | 44 virtual void DispatchStore( |
| 44 const WebCredential&, | 45 const WebCredential&, |
| 45 WebCredentialManagerClient::NotificationCallbacks*); | 46 WebCredentialManagerClient::NotificationCallbacks*); |
| 46 virtual void DispatchRequireUserMediation( | 47 virtual void DispatchRequireUserMediation( |
| 47 WebCredentialManagerClient::NotificationCallbacks*); | 48 WebCredentialManagerClient::NotificationCallbacks*); |
| 48 virtual void DispatchGet(bool zero_click_only, | 49 virtual void DispatchGet(WebCredentialMediationRequirement, |
| 49 bool include_passwords, | 50 bool include_passwords, |
| 50 const WebVector<WebURL>& federations, | 51 const WebVector<WebURL>& federations, |
| 51 WebCredentialManagerClient::RequestCallbacks*); | 52 WebCredentialManagerClient::RequestCallbacks*); |
| 52 | 53 |
| 53 private: | 54 private: |
| 54 WebCredentialManagerClient* client_; | 55 WebCredentialManagerClient* client_; |
| 55 }; | 56 }; |
| 56 | 57 |
| 57 MODULES_EXPORT void ProvideCredentialManagerClientTo(Page&, | 58 MODULES_EXPORT void ProvideCredentialManagerClientTo(Page&, |
| 58 CredentialManagerClient*); | 59 CredentialManagerClient*); |
| 59 | 60 |
| 60 } // namespace blink | 61 } // namespace blink |
| 61 | 62 |
| 62 #endif // CredentialManagerClient_h | 63 #endif // CredentialManagerClient_h |
| OLD | NEW |