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

Side by Side Diff: third_party/WebKit/Source/platform/loader/fetch/ResourceResponse.cpp

Issue 2806263002: Rename blink::AtomicString::Lower() to DeprecatedLower(). (Closed)
Patch Set: Update a comment 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) 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Google Inc. All rights reserved. 3 * Copyright (C) 2009 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 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 String value = http_header_fields_.Get(HTTPNames::Content_Disposition); 515 String value = http_header_fields_.Get(HTTPNames::Content_Disposition);
516 size_t loc = value.Find(';'); 516 size_t loc = value.Find(';');
517 if (loc != kNotFound) 517 if (loc != kNotFound)
518 value = value.Left(loc); 518 value = value.Left(loc);
519 value = value.StripWhiteSpace(); 519 value = value.StripWhiteSpace();
520 return EqualIgnoringCase(value, kAttachmentString); 520 return EqualIgnoringCase(value, kAttachmentString);
521 } 521 }
522 522
523 AtomicString ResourceResponse::HttpContentType() const { 523 AtomicString ResourceResponse::HttpContentType() const {
524 return ExtractMIMETypeFromMediaType( 524 return ExtractMIMETypeFromMediaType(
525 HttpHeaderField(HTTPNames::Content_Type).Lower()); 525 HttpHeaderField(HTTPNames::Content_Type).DeprecatedLower());
526 } 526 }
527 527
528 bool ResourceResponse::WasCached() const { 528 bool ResourceResponse::WasCached() const {
529 return was_cached_; 529 return was_cached_;
530 } 530 }
531 531
532 void ResourceResponse::SetWasCached(bool value) { 532 void ResourceResponse::SetWasCached(bool value) {
533 was_cached_ = value; 533 was_cached_ = value;
534 } 534 }
535 535
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 if (a.GetResourceLoadTiming() != b.GetResourceLoadTiming()) 628 if (a.GetResourceLoadTiming() != b.GetResourceLoadTiming())
629 return false; 629 return false;
630 if (a.EncodedBodyLength() != b.EncodedBodyLength()) 630 if (a.EncodedBodyLength() != b.EncodedBodyLength())
631 return false; 631 return false;
632 if (a.DecodedBodyLength() != b.DecodedBodyLength()) 632 if (a.DecodedBodyLength() != b.DecodedBodyLength())
633 return false; 633 return false;
634 return true; 634 return true;
635 } 635 }
636 636
637 } // namespace blink 637 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698