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

Side by Side Diff: third_party/WebKit/Source/platform/network/EncodedFormData.h

Issue 2811793004: Rename EqualIgnoringCase*() to DeprecatedEqualIgnoringCase*() (Closed)
Patch Set: Created 3 years, 8 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 /* 1 /*
2 * Copyright (C) 2004, 2006, 2008, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2008, 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // to indicate an unspecified identifier. 145 // to indicate an unspecified identifier.
146 void SetIdentifier(int64_t identifier) { identifier_ = identifier; } 146 void SetIdentifier(int64_t identifier) { identifier_ = identifier; }
147 int64_t Identifier() const { return identifier_; } 147 int64_t Identifier() const { return identifier_; }
148 148
149 bool ContainsPasswordData() const { return contains_password_data_; } 149 bool ContainsPasswordData() const { return contains_password_data_; }
150 void SetContainsPasswordData(bool contains_password_data) { 150 void SetContainsPasswordData(bool contains_password_data) {
151 contains_password_data_ = contains_password_data; 151 contains_password_data_ = contains_password_data;
152 } 152 }
153 153
154 static EncodingType ParseEncodingType(const String& type) { 154 static EncodingType ParseEncodingType(const String& type) {
155 if (EqualIgnoringCase(type, "text/plain")) 155 if (DeprecatedEqualIgnoringCase(type, "text/plain"))
156 return kTextPlain; 156 return kTextPlain;
157 if (EqualIgnoringCase(type, "multipart/form-data")) 157 if (DeprecatedEqualIgnoringCase(type, "multipart/form-data"))
158 return kMultipartFormData; 158 return kMultipartFormData;
159 return kFormURLEncoded; 159 return kFormURLEncoded;
160 } 160 }
161 161
162 // Size of the elements making up the EncodedFormData. 162 // Size of the elements making up the EncodedFormData.
163 unsigned long long SizeInBytes() const; 163 unsigned long long SizeInBytes() const;
164 164
165 bool IsSafeToSendToAnotherThread() const; 165 bool IsSafeToSendToAnotherThread() const;
166 166
167 private: 167 private:
(...skipping 11 matching lines...) Expand all
179 return a.Elements() == b.Elements(); 179 return a.Elements() == b.Elements();
180 } 180 }
181 181
182 inline bool operator!=(const EncodedFormData& a, const EncodedFormData& b) { 182 inline bool operator!=(const EncodedFormData& a, const EncodedFormData& b) {
183 return !(a == b); 183 return !(a == b);
184 } 184 }
185 185
186 } // namespace blink 186 } // namespace blink
187 187
188 #endif 188 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698