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

Side by Side Diff: net/tools/balsa/balsa_headers.h

Issue 1224553010: Replace base::str[n]casecmp with helper functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « net/http/http_request_headers.cc ('k') | net/tools/balsa/string_piece_utils.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 NET_TOOLS_BALSA_BALSA_HEADERS_H_ 5 #ifndef NET_TOOLS_BALSA_BALSA_HEADERS_H_
6 #define NET_TOOLS_BALSA_BALSA_HEADERS_H_ 6 #define NET_TOOLS_BALSA_BALSA_HEADERS_H_
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <iosfwd> 9 #include <iosfwd>
10 #include <iterator> 10 #include <iterator>
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 class const_header_lines_key_iterator : public iterator_base { 531 class const_header_lines_key_iterator : public iterator_base {
532 friend class BalsaHeaders; 532 friend class BalsaHeaders;
533 public: 533 public:
534 typedef const_header_lines_key_iterator self; 534 typedef const_header_lines_key_iterator self;
535 const_header_lines_key_iterator(const const_header_lines_key_iterator&); 535 const_header_lines_key_iterator(const const_header_lines_key_iterator&);
536 536
537 self& operator++() { 537 self& operator++() {
538 do { 538 do {
539 iterator_base::increment(); 539 iterator_base::increment();
540 } while (!AtEnd() && 540 } while (!AtEnd() &&
541 !StringPieceUtils::EqualIgnoreCase(key_, (**this).first)); 541 !base::EqualsCaseInsensitiveASCII(key_, (**this).first));
542 return *this; 542 return *this;
543 } 543 }
544 544
545 void operator++(int ignore) { 545 void operator++(int ignore) {
546 ++(*this); 546 ++(*this);
547 } 547 }
548 548
549 // Only forward-iteration makes sense, so no operator-- defined. 549 // Only forward-iteration makes sense, so no operator-- defined.
550 550
551 private: 551 private:
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
1131 size_t end_of_firstline_idx_; 1131 size_t end_of_firstline_idx_;
1132 1132
1133 bool transfer_encoding_is_chunked_; 1133 bool transfer_encoding_is_chunked_;
1134 1134
1135 HeaderLines header_lines_; 1135 HeaderLines header_lines_;
1136 }; 1136 };
1137 1137
1138 } // namespace net 1138 } // namespace net
1139 1139
1140 #endif // NET_TOOLS_BALSA_BALSA_HEADERS_H_ 1140 #endif // NET_TOOLS_BALSA_BALSA_HEADERS_H_
OLDNEW
« no previous file with comments | « net/http/http_request_headers.cc ('k') | net/tools/balsa/string_piece_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698