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" |
(...skipping 26 matching lines...) Expand all Loading... |
37 static CredentialManagerClient* From(ExecutionContext*); | 37 static CredentialManagerClient* From(ExecutionContext*); |
38 | 38 |
39 // 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 |
40 // the following methods. | 40 // the following methods. |
41 virtual void DispatchFailedSignIn( | 41 virtual void DispatchFailedSignIn( |
42 const WebCredential&, | 42 const WebCredential&, |
43 WebCredentialManagerClient::NotificationCallbacks*); | 43 WebCredentialManagerClient::NotificationCallbacks*); |
44 virtual void DispatchStore( | 44 virtual void DispatchStore( |
45 const WebCredential&, | 45 const WebCredential&, |
46 WebCredentialManagerClient::NotificationCallbacks*); | 46 WebCredentialManagerClient::NotificationCallbacks*); |
47 virtual void DispatchRequireUserMediation( | 47 virtual void DispatchPreventSilentAccess( |
48 WebCredentialManagerClient::NotificationCallbacks*); | 48 WebCredentialManagerClient::NotificationCallbacks*); |
49 virtual void DispatchGet(WebCredentialMediationRequirement, | 49 virtual void DispatchGet(WebCredentialMediationRequirement, |
50 bool include_passwords, | 50 bool include_passwords, |
51 const WebVector<WebURL>& federations, | 51 const WebVector<WebURL>& federations, |
52 WebCredentialManagerClient::RequestCallbacks*); | 52 WebCredentialManagerClient::RequestCallbacks*); |
53 | 53 |
54 private: | 54 private: |
55 WebCredentialManagerClient* client_; | 55 WebCredentialManagerClient* client_; |
56 }; | 56 }; |
57 | 57 |
58 MODULES_EXPORT void ProvideCredentialManagerClientTo(Page&, | 58 MODULES_EXPORT void ProvideCredentialManagerClientTo(Page&, |
59 CredentialManagerClient*); | 59 CredentialManagerClient*); |
60 | 60 |
61 } // namespace blink | 61 } // namespace blink |
62 | 62 |
63 #endif // CredentialManagerClient_h | 63 #endif // CredentialManagerClient_h |
OLD | NEW |