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

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

Issue 464783003: Credential manager: Convert strings to URLs early. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Feedback. Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « public/platform/WebCredential.h ('k') | public/platform/WebFederatedCredential.h » ('j') | 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 WebCredentialManager_h 5 #ifndef WebCredentialManager_h
6 #define WebCredentialManager_h 6 #define WebCredentialManager_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/WebString.h" 10 #include "public/platform/WebString.h"
11 #include "public/platform/WebVector.h" 11 #include "public/platform/WebVector.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 // WebCredentialManager provides an interface for asking Blink's embedder to 15 // WebCredentialManager provides an interface for asking Blink's embedder to
16 // respond to `navigator.credentials.*` calls. 16 // respond to `navigator.credentials.*` calls.
17 class WebCredentialManager { 17 class WebCredentialManager {
18 public: 18 public:
19 typedef WebCallbacks<WebCredential, WebCredentialManagerError> RequestCallba cks; 19 typedef WebCallbacks<WebCredential, WebCredentialManagerError> RequestCallba cks;
20 typedef WebCallbacks<void, WebCredentialManagerError> NotificationCallbacks; 20 typedef WebCallbacks<void, WebCredentialManagerError> NotificationCallbacks;
21 21
22 WebCredentialManager(); 22 WebCredentialManager();
23 virtual ~WebCredentialManager(); 23 virtual ~WebCredentialManager();
24 24
25 // Ownership of the callback is transferred to the callee for each of the fo llowing methods. 25 // Ownership of the callback is transferred to the callee for each of the fo llowing methods.
26 virtual void dispatchFailedSignIn(const WebCredential&, NotificationCallback s*) { } 26 virtual void dispatchFailedSignIn(const WebCredential&, NotificationCallback s*) { }
27 virtual void dispatchSignedIn(const WebCredential&, NotificationCallbacks*) { } 27 virtual void dispatchSignedIn(const WebCredential&, NotificationCallbacks*) { }
28 virtual void dispatchSignedOut(NotificationCallbacks*) { } 28 virtual void dispatchSignedOut(NotificationCallbacks*) { }
29 virtual void dispatchRequest(bool zeroClickOnly, const WebVector<WebString>& federations, RequestCallbacks*) { } 29 virtual void dispatchRequest(bool zeroClickOnly, const WebVector<WebURL>& fe derations, RequestCallbacks*) { }
30 }; 30 };
31 31
32 } // namespace blink 32 } // namespace blink
33 33
34 #endif // WebCredentialManager_h 34 #endif // WebCredentialManager_h
OLDNEW
« no previous file with comments | « public/platform/WebCredential.h ('k') | public/platform/WebFederatedCredential.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698