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 FederatedCredential_h | 5 #ifndef FederatedCredential_h |
6 #define FederatedCredential_h | 6 #define FederatedCredential_h |
7 | 7 |
8 #include "bindings/core/v8/serialization/SerializedScriptValue.h" | 8 #include "bindings/core/v8/serialization/SerializedScriptValue.h" |
9 #include "modules/ModulesExport.h" | 9 #include "modules/ModulesExport.h" |
10 #include "modules/credentialmanager/CredentialUserData.h" | 10 #include "modules/credentialmanager/CredentialUserData.h" |
11 #include "platform/bindings/ScriptWrappable.h" | 11 #include "platform/bindings/ScriptWrappable.h" |
12 #include "platform/heap/Handle.h" | 12 #include "platform/heap/Handle.h" |
13 #include "platform/weborigin/KURL.h" | 13 #include "platform/weborigin/KURL.h" |
14 | 14 |
15 namespace blink { | 15 namespace blink { |
16 | 16 |
17 class FederatedCredentialData; | 17 class FederatedCredentialInit; |
18 class WebFederatedCredential; | 18 class WebFederatedCredential; |
19 | 19 |
20 class MODULES_EXPORT FederatedCredential final : public CredentialUserData { | 20 class MODULES_EXPORT FederatedCredential final : public CredentialUserData { |
21 DEFINE_WRAPPERTYPEINFO(); | 21 DEFINE_WRAPPERTYPEINFO(); |
22 | 22 |
23 public: | 23 public: |
24 static FederatedCredential* Create(const FederatedCredentialData&, | 24 static FederatedCredential* Create(const FederatedCredentialInit&, |
25 ExceptionState&); | 25 ExceptionState&); |
26 static FederatedCredential* Create(WebFederatedCredential*); | 26 static FederatedCredential* Create(WebFederatedCredential*); |
27 | 27 |
28 // FederatedCredential.idl | 28 // FederatedCredential.idl |
29 const String provider() const; | 29 const String provider() const; |
30 | 30 |
31 // TODO(mkwst): This is a stub, as we don't yet have any support on the | 31 // TODO(mkwst): This is a stub, as we don't yet have any support on the |
32 // Chromium-side. | 32 // Chromium-side. |
33 const String& protocol() const { return g_empty_string; } | 33 const String& protocol() const { return g_empty_string; } |
34 | 34 |
35 private: | 35 private: |
36 FederatedCredential(WebFederatedCredential*); | 36 FederatedCredential(WebFederatedCredential*); |
37 FederatedCredential(const String& id, | 37 FederatedCredential(const String& id, |
38 const KURL& provider, | 38 const KURL& provider, |
39 const String& name, | 39 const String& name, |
40 const KURL& icon); | 40 const KURL& icon); |
41 }; | 41 }; |
42 | 42 |
43 } // namespace blink | 43 } // namespace blink |
44 | 44 |
45 #endif // FederatedCredential_h | 45 #endif // FederatedCredential_h |
OLD | NEW |