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

Side by Side Diff: Source/platform/network/ResourceRequest.cpp

Issue 1311923004: Rename FormData/FormDataBuilder to EncodedFormData/FormDataEncoder respectively. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update comments Created 5 years, 3 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 return; 262 return;
263 } 263 }
264 setHTTPOrigin(origin); 264 setHTTPOrigin(origin);
265 } 265 }
266 266
267 void ResourceRequest::clearHTTPUserAgent() 267 void ResourceRequest::clearHTTPUserAgent()
268 { 268 {
269 m_httpHeaderFields.remove("User-Agent"); 269 m_httpHeaderFields.remove("User-Agent");
270 } 270 }
271 271
272 FormData* ResourceRequest::httpBody() const 272 EncodedFormData* ResourceRequest::httpBody() const
273 { 273 {
274 return m_httpBody.get(); 274 return m_httpBody.get();
275 } 275 }
276 276
277 void ResourceRequest::setHTTPBody(PassRefPtr<FormData> httpBody) 277 void ResourceRequest::setHTTPBody(PassRefPtr<EncodedFormData> httpBody)
278 { 278 {
279 m_httpBody = httpBody; 279 m_httpBody = httpBody;
280 } 280 }
281 281
282 bool ResourceRequest::allowStoredCredentials() const 282 bool ResourceRequest::allowStoredCredentials() const
283 { 283 {
284 return m_allowStoredCredentials; 284 return m_allowStoredCredentials;
285 } 285 }
286 286
287 void ResourceRequest::setAllowStoredCredentials(bool allowCredentials) 287 void ResourceRequest::setAllowStoredCredentials(bool allowCredentials)
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 338
339 if (a.allowStoredCredentials() != b.allowStoredCredentials()) 339 if (a.allowStoredCredentials() != b.allowStoredCredentials())
340 return false; 340 return false;
341 341
342 if (a.priority() != b.priority()) 342 if (a.priority() != b.priority())
343 return false; 343 return false;
344 344
345 if (a.referrerPolicy() != b.referrerPolicy()) 345 if (a.referrerPolicy() != b.referrerPolicy())
346 return false; 346 return false;
347 347
348 FormData* formDataA = a.httpBody(); 348 EncodedFormData* formDataA = a.httpBody();
349 FormData* formDataB = b.httpBody(); 349 EncodedFormData* formDataB = b.httpBody();
350 350
351 if (!formDataA) 351 if (!formDataA)
352 return !formDataB; 352 return !formDataB;
353 if (!formDataB) 353 if (!formDataB)
354 return !formDataA; 354 return !formDataA;
355 355
356 if (*formDataA != *formDataB) 356 if (*formDataA != *formDataB)
357 return false; 357 return false;
358 358
359 return true; 359 return true;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 m_didSetHTTPReferrer = false; 451 m_didSetHTTPReferrer = false;
452 m_checkForBrowserSideNavigation = true; 452 m_checkForBrowserSideNavigation = true;
453 m_uiStartTime = 0; 453 m_uiStartTime = 0;
454 m_originatesFromReservedIPRange = false; 454 m_originatesFromReservedIPRange = false;
455 m_inputPerfMetricReportPolicy = InputToLoadPerfMetricReportPolicy::NoReport; 455 m_inputPerfMetricReportPolicy = InputToLoadPerfMetricReportPolicy::NoReport;
456 m_followedRedirect = false; 456 m_followedRedirect = false;
457 m_requestorOrigin = SecurityOrigin::createUnique(); 457 m_requestorOrigin = SecurityOrigin::createUnique();
458 } 458 }
459 459
460 } // namespace blink 460 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/network/ResourceRequest.h ('k') | Source/platform/network/ResourceRequestTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698