Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1221)

Side by Side Diff: third_party/WebKit/Source/modules/credentialmanager/FederatedCredential.h

Issue 2832813002: Drop SiteBoundCredential in favor of CredentialUserData (Closed)
Patch Set: HTTPS Rename Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "bindings/core/v8/SerializedScriptValue.h" 9 #include "bindings/core/v8/SerializedScriptValue.h"
10 #include "modules/ModulesExport.h" 10 #include "modules/ModulesExport.h"
11 #include "modules/credentialmanager/SiteBoundCredential.h" 11 #include "modules/credentialmanager/CredentialUserData.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 FederatedCredentialData;
18 class WebFederatedCredential; 18 class WebFederatedCredential;
19 19
20 class MODULES_EXPORT FederatedCredential final : public SiteBoundCredential { 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 FederatedCredentialData&,
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698