| 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 "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 |
| OLD | NEW |