OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |