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

Side by Side Diff: public/platform/WebCredentialManagerClient.h

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
« no previous file with comments | « Source/modules/credentialmanager/CredentialsContainer.idl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef WebCredentialManagerClient_h 5 #ifndef WebCredentialManagerClient_h
6 #define WebCredentialManagerClient_h 6 #define WebCredentialManagerClient_h
7 7
8 #include "public/platform/WebCallbacks.h" 8 #include "public/platform/WebCallbacks.h"
9 #include "public/platform/WebCredentialManagerError.h" 9 #include "public/platform/WebCredentialManagerError.h"
10 #include "public/platform/WebVector.h" 10 #include "public/platform/WebVector.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class WebCredential; 14 class WebCredential;
15 class WebURL; 15 class WebURL;
16 16
17 // WebCredentialManagerClient is an interface which allows an embedder to 17 // WebCredentialManagerClient is an interface which allows an embedder to
18 // implement 'navigator.credential.*' calls which are defined in the 18 // implement 'navigator.credential.*' calls which are defined in the
19 // 'credentialmanager' module. 19 // 'credentialmanager' module.
20 class WebCredentialManagerClient { 20 class WebCredentialManagerClient {
21 public: 21 public:
22 typedef WebCallbacks<WebCredential, WebCredentialManagerError> RequestCallba cks; 22 typedef WebCallbacks<WebCredential, WebCredentialManagerError> RequestCallba cks;
23 typedef WebCallbacks<void, WebCredentialManagerError> NotificationCallbacks; 23 typedef WebCallbacks<void, WebCredentialManagerError> NotificationCallbacks;
24 24
25 // Ownership of the callback is transferred to the callee for each of 25 // Ownership of the callback is transferred to the callee for each of
26 // the following methods. 26 // the following methods.
27 virtual void dispatchFailedSignIn(const WebCredential&, NotificationCallback s*) { } 27 virtual void dispatchFailedSignIn(const WebCredential&, NotificationCallback s*) { }
28 virtual void dispatchSignedIn(const WebCredential&, NotificationCallbacks*) { } 28 virtual void dispatchSignedIn(const WebCredential&, NotificationCallbacks*) { }
29 virtual void dispatchRequireUserMediation(NotificationCallbacks*) { }
30 virtual void dispatchRequest(bool zeroClickOnly, const WebVector<WebURL>& fe derations, RequestCallbacks*) { }
31
32 // TODO(mkwst): Drop this once the Chromium side is updated.
29 virtual void dispatchSignedOut(NotificationCallbacks*) { } 33 virtual void dispatchSignedOut(NotificationCallbacks*) { }
30 virtual void dispatchRequest(bool zeroClickOnly, const WebVector<WebURL>& fe derations, RequestCallbacks*) { }
31 }; 34 };
32 35
33 } // namespace blink 36 } // namespace blink
34 37
35 #endif // WebCredentialManager_h 38 #endif // WebCredentialManager_h
OLDNEW
« no previous file with comments | « Source/modules/credentialmanager/CredentialsContainer.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698