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

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

Issue 2832813002: Drop SiteBoundCredential in favor of CredentialUserData (Closed)
Patch Set: HTTPS Rename Created 3 years, 7 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 PasswordCredential_h 5 #ifndef PasswordCredential_h
6 #define PasswordCredential_h 6 #define PasswordCredential_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 "bindings/modules/v8/FormDataOrURLSearchParams.h" 10 #include "bindings/modules/v8/FormDataOrURLSearchParams.h"
11 #include "modules/ModulesExport.h" 11 #include "modules/ModulesExport.h"
12 #include "modules/credentialmanager/SiteBoundCredential.h" 12 #include "modules/credentialmanager/CredentialUserData.h"
13 #include "platform/heap/Handle.h" 13 #include "platform/heap/Handle.h"
14 #include "platform/network/EncodedFormData.h" 14 #include "platform/network/EncodedFormData.h"
15 #include "platform/weborigin/KURL.h" 15 #include "platform/weborigin/KURL.h"
16 16
17 namespace blink { 17 namespace blink {
18 18
19 class HTMLFormElement; 19 class HTMLFormElement;
20 class PasswordCredentialData; 20 class PasswordCredentialData;
21 class WebPasswordCredential; 21 class WebPasswordCredential;
22 22
23 using CredentialPostBodyType = FormDataOrURLSearchParams; 23 using CredentialPostBodyType = FormDataOrURLSearchParams;
24 24
25 class MODULES_EXPORT PasswordCredential final : public SiteBoundCredential { 25 class MODULES_EXPORT PasswordCredential final : public CredentialUserData {
26 DEFINE_WRAPPERTYPEINFO(); 26 DEFINE_WRAPPERTYPEINFO();
27 27
28 public: 28 public:
29 static PasswordCredential* Create(const PasswordCredentialData&, 29 static PasswordCredential* Create(const PasswordCredentialData&,
30 ExceptionState&); 30 ExceptionState&);
31 static PasswordCredential* Create(HTMLFormElement*, ExceptionState&); 31 static PasswordCredential* Create(HTMLFormElement*, ExceptionState&);
32 static PasswordCredential* Create(WebPasswordCredential*); 32 static PasswordCredential* Create(WebPasswordCredential*);
33 33
34 // PasswordCredential.idl 34 // PasswordCredential.idl
35 void setIdName(const String& name) { id_name_ = name; } 35 void setIdName(const String& name) { id_name_ = name; }
(...skipping 22 matching lines...) Expand all
58 const KURL& icon); 58 const KURL& icon);
59 59
60 String id_name_; 60 String id_name_;
61 String password_name_; 61 String password_name_;
62 CredentialPostBodyType additional_data_; 62 CredentialPostBodyType additional_data_;
63 }; 63 };
64 64
65 } // namespace blink 65 } // namespace blink
66 66
67 #endif // PasswordCredential_h 67 #endif // PasswordCredential_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698