Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: third_party/WebKit/Source/modules/credentialmanager/CredentialManagerClient.cpp

Issue 2864493003: Deprecate CredentialRequestOptions.unmediated in favor mediation enum (Closed)
Patch Set: Rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698