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 PasswordCredential_h | 5 #ifndef PasswordCredential_h |
6 #define PasswordCredential_h | 6 #define PasswordCredential_h |
7 | 7 |
8 #include "bindings/core/v8/SerializedScriptValue.h" | 8 #include "bindings/core/v8/SerializedScriptValue.h" |
9 #include "bindings/modules/v8/FormDataOrURLSearchParams.h" | 9 #include "bindings/modules/v8/FormDataOrURLSearchParams.h" |
10 #include "modules/ModulesExport.h" | 10 #include "modules/ModulesExport.h" |
(...skipping 27 matching lines...) Expand all Loading... | |
38 void setPasswordName(const String& name) { password_name_ = name; } | 38 void setPasswordName(const String& name) { password_name_ = name; } |
39 const String& passwordName() const { return password_name_; } | 39 const String& passwordName() const { return password_name_; } |
40 | 40 |
41 void setAdditionalData(const CredentialPostBodyType& data) { | 41 void setAdditionalData(const CredentialPostBodyType& data) { |
42 additional_data_ = data; | 42 additional_data_ = data; |
43 } | 43 } |
44 void additionalData(CredentialPostBodyType& out) const { | 44 void additionalData(CredentialPostBodyType& out) const { |
45 out = additional_data_; | 45 out = additional_data_; |
46 } | 46 } |
47 | 47 |
48 void setPassword(const String&); | |
Mike West
2017/05/04 11:13:33
I don't think we need this; it's a readonly attrib
jdoerrie
2017/05/04 14:24:10
I'm not quite sure, in the PR it's not: https://gi
Mike West
2017/05/05 11:35:10
I think the patch is incorrect, and added a commen
| |
49 const String& password() const; | |
50 | |
48 // Internal methods | 51 // Internal methods |
49 PassRefPtr<EncodedFormData> EncodeFormData(String& content_type) const; | 52 PassRefPtr<EncodedFormData> EncodeFormData(String& content_type) const; |
50 const String& Password() const; | |
51 DECLARE_VIRTUAL_TRACE(); | 53 DECLARE_VIRTUAL_TRACE(); |
52 | 54 |
53 private: | 55 private: |
54 PasswordCredential(WebPasswordCredential*); | 56 PasswordCredential(WebPasswordCredential*); |
55 PasswordCredential(const String& id, | 57 PasswordCredential(const String& id, |
56 const String& password, | 58 const String& password, |
57 const String& name, | 59 const String& name, |
58 const KURL& icon); | 60 const KURL& icon); |
59 | 61 |
60 String id_name_; | 62 String id_name_; |
61 String password_name_; | 63 String password_name_; |
64 String password_; | |
62 CredentialPostBodyType additional_data_; | 65 CredentialPostBodyType additional_data_; |
63 }; | 66 }; |
64 | 67 |
65 } // namespace blink | 68 } // namespace blink |
66 | 69 |
67 #endif // PasswordCredential_h | 70 #endif // PasswordCredential_h |
OLD | NEW |