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

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

Issue 1476003002: Build content-type string in PasswordCredential::encodeFormData() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/credentialmanager/PasswordCredential.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/UnionTypesModules.h" 10 #include "bindings/modules/v8/UnionTypesModules.h"
(...skipping 21 matching lines...) Expand all
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/credentialmanager/PasswordCredential.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698