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

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: 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
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..88a8a5e877824fcf1c9b989fea503b749c54cd22 100644
--- a/net/tools/flip_server/balsa_headers.cc
+++ b/net/tools/flip_server/balsa_headers.cc
@@ -70,10 +70,43 @@ 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_) {
+}
+
+BalsaHeaders::iterator_base::iterator_base(const BalsaHeaders* headers,
+ HeaderLines::size_type index)
+ : headers_(headers),
+ idx_(index) {
+}
mmenke 2012/08/09 15:13:35 nit: This one should be declared after operator<<
hans 2012/08/09 15:35:42 Done.
+
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::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) {
+}
mmenke 2012/08/09 15:13:35 These should be down near the BalsaHeaders constru
hans 2012/08/09 15:35:42 Done.
BalsaBuffer::~BalsaBuffer() {
CleanupBlocksStartingFrom(0);

Powered by Google App Engine
This is Rietveld 408576698