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

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

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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
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 CredentialsContainer_h 5 #ifndef CredentialsContainer_h
6 #define CredentialsContainer_h 6 #define CredentialsContainer_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class Credential; 13 class Credential;
14 class Dictionary; 14 class Dictionary;
15 class ScriptPromise; 15 class ScriptPromise;
16 class ScriptState; 16 class ScriptState;
17 17
18 class CredentialsContainer FINAL : public GarbageCollected<CredentialsContainer> , public ScriptWrappable { 18 class CredentialsContainer FINAL : public GarbageCollected<CredentialsContainer> , public ScriptWrappable {
19 DEFINE_WRAPPERTYPEINFO();
19 public: 20 public:
20 static CredentialsContainer* create(); 21 static CredentialsContainer* create();
21 22
22 // CredentialsContainer.h 23 // CredentialsContainer.h
23 ScriptPromise request(ScriptState*, const Dictionary&); 24 ScriptPromise request(ScriptState*, const Dictionary&);
24 ScriptPromise notifySignedIn(ScriptState*, Credential* = 0); 25 ScriptPromise notifySignedIn(ScriptState*, Credential* = 0);
25 ScriptPromise notifyFailedSignIn(ScriptState*, Credential* = 0); 26 ScriptPromise notifyFailedSignIn(ScriptState*, Credential* = 0);
26 ScriptPromise notifySignedOut(ScriptState*); 27 ScriptPromise notifySignedOut(ScriptState*);
27 28
28 virtual void trace(Visitor*) { } 29 virtual void trace(Visitor*) { }
29 30
30 private: 31 private:
31 CredentialsContainer(); 32 CredentialsContainer();
32 }; 33 };
33 34
34 } // namespace blink 35 } // namespace blink
35 36
36 #endif // CredentialsContainer_h 37 #endif // CredentialsContainer_h
OLDNEW
« no previous file with comments | « Source/modules/credentialmanager/Credential.h ('k') | Source/modules/credentialmanager/FederatedCredential.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698