| 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/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/UnionTypesModules.h" | 10 #include "bindings/modules/v8/UnionTypesModules.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 void setIdName(const String& name) { m_idName = name; } | 32 void setIdName(const String& name) { m_idName = name; } |
| 33 const String& idName() const { return m_idName; } | 33 const String& idName() const { return m_idName; } |
| 34 | 34 |
| 35 void setPasswordName(const String& name) { m_passwordName = name; } | 35 void setPasswordName(const String& name) { m_passwordName = name; } |
| 36 const String& passwordName() const { return m_passwordName; } | 36 const String& passwordName() const { return m_passwordName; } |
| 37 | 37 |
| 38 void setAdditionalData(const CredentialPostBodyType& data) { m_additionalDat
a = data; } | 38 void setAdditionalData(const CredentialPostBodyType& data) { m_additionalDat
a = data; } |
| 39 void additionalData(CredentialPostBodyType& out) const { out = m_additionalD
ata; } | 39 void additionalData(CredentialPostBodyType& out) const { out = m_additionalD
ata; } |
| 40 | 40 |
| 41 // Internal methods | 41 // Internal methods |
| 42 PassRefPtr<EncodedFormData> encodeFormData() const; | 42 PassRefPtr<EncodedFormData> encodeFormData(String& contentType) const; |
| 43 const String& password() const; | 43 const String& password() const; |
| 44 DECLARE_VIRTUAL_TRACE(); | 44 DECLARE_VIRTUAL_TRACE(); |
| 45 | 45 |
| 46 private: | 46 private: |
| 47 PasswordCredential(WebPasswordCredential*); | 47 PasswordCredential(WebPasswordCredential*); |
| 48 PasswordCredential(const String& id, const String& password, const String& n
ame, const KURL& icon); | 48 PasswordCredential(const String& id, const String& password, const String& n
ame, const KURL& icon); |
| 49 | 49 |
| 50 String m_idName; | 50 String m_idName; |
| 51 String m_passwordName; | 51 String m_passwordName; |
| 52 CredentialPostBodyType m_additionalData; | 52 CredentialPostBodyType m_additionalData; |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } // namespace blink | 55 } // namespace blink |
| 56 | 56 |
| 57 #endif // PasswordCredential_h | 57 #endif // PasswordCredential_h |
| OLD | NEW |