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

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

Issue 1160283002: Credential Management: Rename 'notifySignedOut' to 'requireUserMediation'. (1/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@rename-avatar
Patch Set: WebExposed. Created 5 years, 6 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 "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
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
OLDNEW
« no previous file with comments | « Source/modules/credentialmanager/CredentialManagerClient.h ('k') | Source/modules/credentialmanager/CredentialsContainer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698