| 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 "modules/credentialmanager/CredentialManagerClient.h" | 5 #include "modules/credentialmanager/CredentialManagerClient.h" |
| 6 | 6 |
| 7 #include "core/dom/Document.h" | 7 #include "core/dom/Document.h" |
| 8 #include "core/dom/ExecutionContext.h" | 8 #include "core/dom/ExecutionContext.h" |
| 9 #include "core/page/Page.h" | 9 #include "core/page/Page.h" |
| 10 #include "platform/bindings/ScriptState.h" | 10 #include "platform/bindings/ScriptState.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 } | 64 } |
| 65 | 65 |
| 66 void CredentialManagerClient::DispatchRequireUserMediation( | 66 void CredentialManagerClient::DispatchRequireUserMediation( |
| 67 WebCredentialManagerClient::NotificationCallbacks* callbacks) { | 67 WebCredentialManagerClient::NotificationCallbacks* callbacks) { |
| 68 if (!client_) | 68 if (!client_) |
| 69 return; | 69 return; |
| 70 client_->DispatchRequireUserMediation(callbacks); | 70 client_->DispatchRequireUserMediation(callbacks); |
| 71 } | 71 } |
| 72 | 72 |
| 73 void CredentialManagerClient::DispatchGet( | 73 void CredentialManagerClient::DispatchGet( |
| 74 bool zero_click_only, | 74 WebCredentialMediationRequirement mediation, |
| 75 bool include_passwords, | 75 bool include_passwords, |
| 76 const WebVector<WebURL>& federations, | 76 const WebVector<WebURL>& federations, |
| 77 WebCredentialManagerClient::RequestCallbacks* callbacks) { | 77 WebCredentialManagerClient::RequestCallbacks* callbacks) { |
| 78 if (!client_) | 78 if (!client_) |
| 79 return; | 79 return; |
| 80 client_->DispatchGet(zero_click_only, include_passwords, federations, | 80 client_->DispatchGet(mediation, include_passwords, federations, callbacks); |
| 81 callbacks); | |
| 82 } | 81 } |
| 83 | 82 |
| 84 } // namespace blink | 83 } // namespace blink |
| OLD | NEW |