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

Unified Diff: net/tools/flip_server/balsa_headers.cc

Issue 10854063: Clean-up inline members of nested classes (net/) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add a NET_EXPOR_PRIVATE Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/flip_server/balsa_headers.h ('k') | net/tools/flip_server/output_ordering.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/flip_server/balsa_headers.cc
diff --git a/net/tools/flip_server/balsa_headers.cc b/net/tools/flip_server/balsa_headers.cc
index 0fe68c2abb27c4525d7c9d0e0949835b00698684..0cba73bbead67a46a4935ef96544bb4037f78fbe 100644
--- a/net/tools/flip_server/balsa_headers.cc
+++ b/net/tools/flip_server/balsa_headers.cc
@@ -70,10 +70,23 @@ namespace net {
const size_t BalsaBuffer::kDefaultBlocksize;
+BalsaHeaders::iterator_base::iterator_base() : headers_(NULL), idx_(0) { }
+
+BalsaHeaders::iterator_base::iterator_base(const iterator_base& it)
+ : headers_(it.headers_),
+ idx_(it.idx_) {
+}
+
std::ostream& BalsaHeaders::iterator_base::operator<<(std::ostream& os) const {
- os << "[" << this->headers_ << ", " << this->idx_ << "]";
- return os;
- }
+ os << "[" << this->headers_ << ", " << this->idx_ << "]";
+ return os;
+}
+
+BalsaHeaders::iterator_base::iterator_base(const BalsaHeaders* headers,
+ HeaderLines::size_type index)
+ : headers_(headers),
+ idx_(index) {
+}
BalsaBuffer::~BalsaBuffer() {
CleanupBlocksStartingFrom(0);
@@ -225,6 +238,26 @@ void BalsaBuffer::CleanupBlocksStartingFrom(Blocks::size_type start_idx) {
blocks_.resize(start_idx);
}
+BalsaHeaders::const_header_lines_key_iterator::const_header_lines_key_iterator(
+ const const_header_lines_key_iterator& other)
+ : iterator_base(other),
+ key_(other.key_) {
+}
+
+BalsaHeaders::const_header_lines_key_iterator::const_header_lines_key_iterator(
+ const BalsaHeaders* headers,
+ HeaderLines::size_type index,
+ const base::StringPiece& key)
+ : iterator_base(headers, index),
+ key_(key) {
+}
+
+BalsaHeaders::const_header_lines_key_iterator::const_header_lines_key_iterator(
+ const BalsaHeaders* headers,
+ HeaderLines::size_type index)
+ : iterator_base(headers, index) {
+}
+
BalsaHeaders::BalsaHeaders()
: balsa_buffer_(4096),
content_length_(0),
« no previous file with comments | « net/tools/flip_server/balsa_headers.h ('k') | net/tools/flip_server/output_ordering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698