| 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/serialization/SerializedScriptValue.h" | 8 #include "bindings/core/v8/serialization/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 const String& password() const; |
| 49 |
| 48 // Internal methods | 50 // Internal methods |
| 49 PassRefPtr<EncodedFormData> EncodeFormData(String& content_type) const; | 51 PassRefPtr<EncodedFormData> EncodeFormData(String& content_type) const; |
| 50 const String& Password() const; | |
| 51 DECLARE_VIRTUAL_TRACE(); | 52 DECLARE_VIRTUAL_TRACE(); |
| 52 | 53 |
| 53 private: | 54 private: |
| 54 PasswordCredential(WebPasswordCredential*); | 55 PasswordCredential(WebPasswordCredential*); |
| 55 PasswordCredential(const String& id, | 56 PasswordCredential(const String& id, |
| 56 const String& password, | 57 const String& password, |
| 57 const String& name, | 58 const String& name, |
| 58 const KURL& icon); | 59 const KURL& icon); |
| 59 | 60 |
| 60 String id_name_; | 61 String id_name_; |
| 61 String password_name_; | 62 String password_name_; |
| 62 CredentialPostBodyType additional_data_; | 63 CredentialPostBodyType additional_data_; |
| 63 }; | 64 }; |
| 64 | 65 |
| 65 } // namespace blink | 66 } // namespace blink |
| 66 | 67 |
| 67 #endif // PasswordCredential_h | 68 #endif // PasswordCredential_h |
| OLD | NEW |