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 WebCredentialManagerClient_h | 5 #ifndef WebCredentialManagerClient_h |
6 #define WebCredentialManagerClient_h | 6 #define WebCredentialManagerClient_h |
7 | 7 |
8 #include "public/platform/WebCallbacks.h" | 8 #include "public/platform/WebCallbacks.h" |
9 #include "public/platform/WebCredentialManagerError.h" | 9 #include "public/platform/WebCredentialManagerError.h" |
10 #include "public/platform/WebCredentialMediationRequirement.h" | 10 #include "public/platform/WebCredentialMediationRequirement.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 typedef WebCallbacks<std::unique_ptr<WebCredential>, | 25 typedef WebCallbacks<std::unique_ptr<WebCredential>, |
26 WebCredentialManagerError> | 26 WebCredentialManagerError> |
27 RequestCallbacks; | 27 RequestCallbacks; |
28 typedef WebCallbacks<void, WebCredentialManagerError> NotificationCallbacks; | 28 typedef WebCallbacks<void, WebCredentialManagerError> NotificationCallbacks; |
29 | 29 |
30 // Ownership of the callback is transferred to the callee for each of | 30 // Ownership of the callback is transferred to the callee for each of |
31 // the following methods. | 31 // the following methods. |
32 virtual void DispatchFailedSignIn(const WebCredential&, | 32 virtual void DispatchFailedSignIn(const WebCredential&, |
33 NotificationCallbacks*) {} | 33 NotificationCallbacks*) {} |
34 virtual void DispatchStore(const WebCredential&, NotificationCallbacks*) {} | 34 virtual void DispatchStore(const WebCredential&, NotificationCallbacks*) {} |
35 virtual void DispatchRequireUserMediation(NotificationCallbacks*) {} | 35 virtual void DispatchPreventSilentAccess(NotificationCallbacks*) {} |
36 virtual void DispatchGet(WebCredentialMediationRequirement mediation, | 36 virtual void DispatchGet(WebCredentialMediationRequirement mediation, |
37 bool include_passwords, | 37 bool include_passwords, |
38 const WebVector<WebURL>& federations, | 38 const WebVector<WebURL>& federations, |
39 RequestCallbacks*) {} | 39 RequestCallbacks*) {} |
40 | 40 |
41 protected: | 41 protected: |
42 virtual ~WebCredentialManagerClient() {} | 42 virtual ~WebCredentialManagerClient() {} |
43 }; | 43 }; |
44 | 44 |
45 } // namespace blink | 45 } // namespace blink |
46 | 46 |
47 #endif // WebCredentialManager_h | 47 #endif // WebCredentialManager_h |
OLD | NEW |