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