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

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

Issue 2884703002: Implement CredentialsContainer::create (Closed)
Patch Set: Nits Created 3 years, 7 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 #ifndef CredentialsContainer_h 5 #ifndef CredentialsContainer_h
6 #define CredentialsContainer_h 6 #define CredentialsContainer_h
7 7
8 #include "modules/ModulesExport.h" 8 #include "modules/ModulesExport.h"
9 #include "platform/bindings/ScriptWrappable.h" 9 #include "platform/bindings/ScriptWrappable.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class Credential; 14 class Credential;
15 class CredentialCreationOptions;
15 class CredentialRequestOptions; 16 class CredentialRequestOptions;
16 class ScriptPromise; 17 class ScriptPromise;
17 class ScriptState; 18 class ScriptState;
18 19
19 class MODULES_EXPORT CredentialsContainer final 20 class MODULES_EXPORT CredentialsContainer final
20 : public GarbageCollected<CredentialsContainer>, 21 : public GarbageCollected<CredentialsContainer>,
21 public ScriptWrappable { 22 public ScriptWrappable {
22 DEFINE_WRAPPERTYPEINFO(); 23 DEFINE_WRAPPERTYPEINFO();
23 24
24 public: 25 public:
25 static CredentialsContainer* Create(); 26 static CredentialsContainer* Create();
26 27
27 // CredentialsContainer.h 28 // CredentialsContainer.idl
28 ScriptPromise get(ScriptState*, const CredentialRequestOptions&); 29 ScriptPromise get(ScriptState*, const CredentialRequestOptions&);
29 ScriptPromise store(ScriptState*, Credential* = 0); 30 ScriptPromise store(ScriptState*, Credential* = 0);
31 ScriptPromise create(ScriptState*, const CredentialCreationOptions&);
30 ScriptPromise requireUserMediation(ScriptState*); 32 ScriptPromise requireUserMediation(ScriptState*);
31 33
32 DEFINE_INLINE_VIRTUAL_TRACE() {} 34 DEFINE_INLINE_VIRTUAL_TRACE() {}
33 35
34 private: 36 private:
35 CredentialsContainer(); 37 CredentialsContainer();
36 }; 38 };
37 39
38 } // namespace blink 40 } // namespace blink
39 41
40 #endif // CredentialsContainer_h 42 #endif // CredentialsContainer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698