OLD | NEW |
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 CredentialRequestOptions; | 14 class CredentialRequestOptions; |
15 class Dictionary; | |
16 class ScriptPromise; | 15 class ScriptPromise; |
17 class ScriptState; | 16 class ScriptState; |
18 | 17 |
19 class CredentialsContainer final | 18 class CredentialsContainer final |
20 : public GarbageCollected<CredentialsContainer>, | 19 : public GarbageCollected<CredentialsContainer>, |
21 public ScriptWrappable { | 20 public ScriptWrappable { |
22 DEFINE_WRAPPERTYPEINFO(); | 21 DEFINE_WRAPPERTYPEINFO(); |
23 | 22 |
24 public: | 23 public: |
25 static CredentialsContainer* create(); | 24 static CredentialsContainer* create(); |
26 | 25 |
27 // CredentialsContainer.h | 26 // CredentialsContainer.h |
28 ScriptPromise get(ScriptState*, const CredentialRequestOptions&); | 27 ScriptPromise get(ScriptState*, const CredentialRequestOptions&); |
29 ScriptPromise store(ScriptState*, Credential* = 0); | 28 ScriptPromise store(ScriptState*, Credential* = 0); |
30 ScriptPromise requireUserMediation(ScriptState*); | 29 ScriptPromise requireUserMediation(ScriptState*); |
31 | 30 |
32 DEFINE_INLINE_VIRTUAL_TRACE() {} | 31 DEFINE_INLINE_VIRTUAL_TRACE() {} |
33 | 32 |
34 private: | 33 private: |
35 CredentialsContainer(); | 34 CredentialsContainer(); |
36 }; | 35 }; |
37 | 36 |
38 } // namespace blink | 37 } // namespace blink |
39 | 38 |
40 #endif // CredentialsContainer_h | 39 #endif // CredentialsContainer_h |
OLD | NEW |