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 17 matching lines...) Expand all Loading... |
28 DECLARE_VIRTUAL_TRACE(); | 28 DECLARE_VIRTUAL_TRACE(); |
29 | 29 |
30 static const char* supplementName(); | 30 static const char* supplementName(); |
31 static CredentialManagerClient* from(Page*); | 31 static CredentialManagerClient* from(Page*); |
32 static CredentialManagerClient* from(ExecutionContext*); | 32 static CredentialManagerClient* from(ExecutionContext*); |
33 | 33 |
34 // Ownership of the callback is transferred to the callee for each of | 34 // Ownership of the callback is transferred to the callee for each of |
35 // the following methods. | 35 // the following methods. |
36 virtual void dispatchFailedSignIn(const WebCredential&, WebCredentialManager
Client::NotificationCallbacks*); | 36 virtual void dispatchFailedSignIn(const WebCredential&, WebCredentialManager
Client::NotificationCallbacks*); |
37 virtual void dispatchSignedIn(const WebCredential&, WebCredentialManagerClie
nt::NotificationCallbacks*); | 37 virtual void dispatchSignedIn(const WebCredential&, WebCredentialManagerClie
nt::NotificationCallbacks*); |
38 virtual void dispatchSignedOut(WebCredentialManagerClient::NotificationCallb
acks*); | 38 virtual void dispatchRequireUserMediation(WebCredentialManagerClient::Notifi
cationCallbacks*); |
39 virtual void dispatchRequest(bool zeroClickOnly, const WebVector<WebURL>& fe
derations, WebCredentialManagerClient::RequestCallbacks*); | 39 virtual void dispatchRequest(bool zeroClickOnly, const WebVector<WebURL>& fe
derations, WebCredentialManagerClient::RequestCallbacks*); |
40 | 40 |
41 private: | 41 private: |
42 WebCredentialManagerClient* m_client; | 42 WebCredentialManagerClient* m_client; |
43 }; | 43 }; |
44 | 44 |
45 MODULES_EXPORT void provideCredentialManagerClientTo(Page&, CredentialManagerCli
ent*); | 45 MODULES_EXPORT void provideCredentialManagerClientTo(Page&, CredentialManagerCli
ent*); |
46 | 46 |
47 } // namespace blink | 47 } // namespace blink |
48 | 48 |
49 #endif // CredentialManagerClient_h | 49 #endif // CredentialManagerClient_h |
OLD | NEW |