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

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

Issue 2895243002: Rename requireUserMediation to preventSilentAccess in the CM API. (Closed)
Patch Set: merge 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 } 56 }
57 57
58 void CredentialManagerClient::DispatchStore( 58 void CredentialManagerClient::DispatchStore(
59 const WebCredential& credential, 59 const WebCredential& credential,
60 WebCredentialManagerClient::NotificationCallbacks* callbacks) { 60 WebCredentialManagerClient::NotificationCallbacks* callbacks) {
61 if (!client_) 61 if (!client_)
62 return; 62 return;
63 client_->DispatchStore(credential, callbacks); 63 client_->DispatchStore(credential, callbacks);
64 } 64 }
65 65
66 void CredentialManagerClient::DispatchRequireUserMediation( 66 void CredentialManagerClient::DispatchPreventSilentAccess(
67 WebCredentialManagerClient::NotificationCallbacks* callbacks) { 67 WebCredentialManagerClient::NotificationCallbacks* callbacks) {
68 if (!client_) 68 if (!client_)
69 return; 69 return;
70 client_->DispatchRequireUserMediation(callbacks); 70 client_->DispatchPreventSilentAccess(callbacks);
71 } 71 }
72 72
73 void CredentialManagerClient::DispatchGet( 73 void CredentialManagerClient::DispatchGet(
74 WebCredentialMediationRequirement mediation, 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(mediation, include_passwords, federations, callbacks); 80 client_->DispatchGet(mediation, include_passwords, federations, callbacks);
81 } 81 }
82 82
83 } // namespace blink 83 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698