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

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

Issue 488993003: Credential Manager: Migrate to WebView client-based approach. (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 | « no previous file | Source/modules/credentialmanager/CredentialManagerClient.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CredentialManagerClient_h
6 #define CredentialManagerClient_h
7
8 #include "platform/Supplementable.h"
9 #include "public/platform/WebCredentialManagerClient.h"
10 #include "public/platform/WebVector.h"
11
12 namespace blink {
13
14 class KURL;
15 class Page;
16 class WebCredential;
17 class WebURL;
18
19 // CredentialManagerClient lives as a supplement to Page, and wraps the embedder -provided
20 // WebCredentialManagerClient's methods to make them visible to the bindings cod e.
21 class CredentialManagerClient FINAL : public NoBaseWillBeGarbageCollected<Creden tialManagerClient>, public WillBeHeapSupplement<Page> {
22 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(CredentialManagerClient);
23 public:
24 explicit CredentialManagerClient(WebCredentialManagerClient*);
25 virtual ~CredentialManagerClient();
26
27 static const char* supplementName();
28 static CredentialManagerClient* from(Page*);
29
30 // Ownership of the callback is transferred to the callee for each of
31 // the following methods.
32 virtual void dispatchFailedSignIn(const WebCredential&, WebCredentialManager Client::NotificationCallbacks*);
33 virtual void dispatchSignedIn(const WebCredential&, WebCredentialManagerClie nt::NotificationCallbacks*);
34 virtual void dispatchSignedOut(WebCredentialManagerClient::NotificationCallb acks*);
35 virtual void dispatchRequest(bool zeroClickOnly, const WebVector<WebURL>& fe derations, WebCredentialManagerClient::RequestCallbacks*);
36
37 private:
38 WebCredentialManagerClient* m_client;
39 };
40
41 void provideCredentialManagerClientTo(Page&, CredentialManagerClient*);
42
43 } // namespace blink
44
45 #endif // CredentialManagerClient_h
46
OLDNEW
« no previous file with comments | « no previous file | Source/modules/credentialmanager/CredentialManagerClient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698