| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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::dispatchRequireUserMediation(WebCredentialManagerC
lient::NotificationCallbacks* 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); | 72 m_client->dispatchRequireUserMediation(callbacks); |
| 73 | |
| 74 // TODO(mkwst): Drop this once the Chromium side is updated. https://crbug.c
om/494880 | |
| 75 m_client->dispatchSignedOut(callbacks); | |
| 76 } | 73 } |
| 77 | 74 |
| 78 void CredentialManagerClient::dispatchRequest(bool zeroClickOnly, const WebVecto
r<WebURL>& federations, WebCredentialManagerClient::RequestCallbacks* callbacks) | 75 void CredentialManagerClient::dispatchRequest(bool zeroClickOnly, const WebVecto
r<WebURL>& federations, WebCredentialManagerClient::RequestCallbacks* callbacks) |
| 79 { | 76 { |
| 80 if (!m_client) | 77 if (!m_client) |
| 81 return; | 78 return; |
| 82 m_client->dispatchRequest(zeroClickOnly, federations, callbacks); | 79 m_client->dispatchRequest(zeroClickOnly, federations, callbacks); |
| 83 } | 80 } |
| 84 | 81 |
| 85 } // namespace blink | 82 } // namespace blink |
| OLD | NEW |