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

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

Issue 3014015: Remove <iostream> where possible. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: fix chrome frame compile Created 10 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/tools/flip_server/balsa_frame.cc ('k') | net/tools/flip_server/balsa_headers.cc » ('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 (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_FLIP_SERVER_BALSA_HEADERS_H_ 5 #ifndef NET_TOOLS_FLIP_SERVER_BALSA_HEADERS_H_
6 #define NET_TOOLS_FLIP_SERVER_BALSA_HEADERS_H_ 6 #define NET_TOOLS_FLIP_SERVER_BALSA_HEADERS_H_
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <iostream> 9 #include <iosfwd>
10 #include <iterator> 10 #include <iterator>
11 #include <string> 11 #include <string>
12 #include <utility> 12 #include <utility>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/port.h" 15 #include "base/port.h"
16 #include "base/logging.h" 16 #include "base/logging.h"
17 #include "base/string_piece.h" 17 #include "base/string_piece.h"
18 #include "net/tools/flip_server/balsa_enums.h" 18 #include "net/tools/flip_server/balsa_enums.h"
19 #include "net/tools/flip_server/string_piece_utils.h" 19 #include "net/tools/flip_server/string_piece_utils.h"
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 463
464 bool operator>=(const self& it) const { 464 bool operator>=(const self& it) const {
465 return it <= *this; 465 return it <= *this;
466 } 466 }
467 467
468 // This mainly exists so that we can have interesting output for 468 // This mainly exists so that we can have interesting output for
469 // unittesting. The EXPECT_EQ, EXPECT_NE functions require that 469 // unittesting. The EXPECT_EQ, EXPECT_NE functions require that
470 // operator<< work for the classes it sees. It would be better if there 470 // operator<< work for the classes it sees. It would be better if there
471 // was an additional traits-like system for the gUnit output... but oh 471 // was an additional traits-like system for the gUnit output... but oh
472 // well. 472 // well.
473 friend std::ostream& operator<<(std::ostream& os, const iterator_base& it) { 473 std::ostream& operator<<(std::ostream& os, const iterator_base& it);
474 os << "[" << it.headers_ << ", " << it.idx_ << "]";
475 return os;
476 }
477 474
478 protected: 475 protected:
479 iterator_base(const BalsaHeaders* headers, HeaderLines::size_type index) : 476 iterator_base(const BalsaHeaders* headers, HeaderLines::size_type index) :
480 headers_(headers), 477 headers_(headers),
481 idx_(index) {} 478 idx_(index) {}
482 479
483 void increment() { 480 void increment() {
484 const HeaderLines& header_lines = headers_->header_lines_; 481 const HeaderLines& header_lines = headers_->header_lines_;
485 const HeaderLines::size_type header_lines_size = header_lines.size(); 482 const HeaderLines::size_type header_lines_size = header_lines.size();
486 const HeaderLines::size_type original_idx = idx_; 483 const HeaderLines::size_type original_idx = idx_;
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after
1275 1272
1276 bool transfer_encoding_is_chunked_; 1273 bool transfer_encoding_is_chunked_;
1277 1274
1278 HeaderLines header_lines_; 1275 HeaderLines header_lines_;
1279 }; 1276 };
1280 1277
1281 } // namespace net 1278 } // namespace net
1282 1279
1283 #endif // NET_TOOLS_FLIP_SERVER_BALSA_HEADERS_H_ 1280 #endif // NET_TOOLS_FLIP_SERVER_BALSA_HEADERS_H_
1284 1281
OLDNEW
« no previous file with comments | « net/tools/flip_server/balsa_frame.cc ('k') | net/tools/flip_server/balsa_headers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698