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