| 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 #include "config.h" | 5 #include "config.h" |
| 6 #include "modules/credentialmanager/CredentialManagerClient.h" | 6 #include "modules/credentialmanager/CredentialManagerClient.h" |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptState.h" | 8 #include "bindings/core/v8/ScriptState.h" |
| 9 #include "core/dom/Document.h" | 9 #include "core/dom/Document.h" |
| 10 #include "core/dom/ExecutionContext.h" | 10 #include "core/dom/ExecutionContext.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 m_client->dispatchFailedSignIn(credential, callbacks); | 58 m_client->dispatchFailedSignIn(credential, callbacks); |
| 59 } | 59 } |
| 60 | 60 |
| 61 void CredentialManagerClient::dispatchSignedIn(const WebCredential& credential,
WebCredentialManagerClient::NotificationCallbacks* callbacks) | 61 void CredentialManagerClient::dispatchSignedIn(const WebCredential& credential,
WebCredentialManagerClient::NotificationCallbacks* callbacks) |
| 62 { | 62 { |
| 63 if (!m_client) | 63 if (!m_client) |
| 64 return; | 64 return; |
| 65 m_client->dispatchSignedIn(credential, callbacks); | 65 m_client->dispatchSignedIn(credential, callbacks); |
| 66 } | 66 } |
| 67 | 67 |
| 68 void CredentialManagerClient::dispatchSignedOut(WebCredentialManagerClient::Noti
ficationCallbacks* callbacks) | 68 void CredentialManagerClient::dispatchRequireUserMediation(WebCredentialManagerC
lient::NotificationCallbacks* callbacks) |
| 69 { | 69 { |
| 70 if (!m_client) | 70 if (!m_client) |
| 71 return; | 71 return; |
| 72 m_client->dispatchRequireUserMediation(callbacks); |
| 73 |
| 74 // TODO(mkwst): Drop this once the Chromium side is updated. https://crbug.c
om/494880 |
| 72 m_client->dispatchSignedOut(callbacks); | 75 m_client->dispatchSignedOut(callbacks); |
| 73 } | 76 } |
| 74 | 77 |
| 75 void CredentialManagerClient::dispatchRequest(bool zeroClickOnly, const WebVecto
r<WebURL>& federations, WebCredentialManagerClient::RequestCallbacks* callbacks) | 78 void CredentialManagerClient::dispatchRequest(bool zeroClickOnly, const WebVecto
r<WebURL>& federations, WebCredentialManagerClient::RequestCallbacks* callbacks) |
| 76 { | 79 { |
| 77 if (!m_client) | 80 if (!m_client) |
| 78 return; | 81 return; |
| 79 m_client->dispatchRequest(zeroClickOnly, federations, callbacks); | 82 m_client->dispatchRequest(zeroClickOnly, federations, callbacks); |
| 80 } | 83 } |
| 81 | 84 |
| 82 } // namespace blink | 85 } // namespace blink |
| OLD | NEW |