summaryrefslogtreecommitdiffstats
path: root/net/http/http_response_headers.cc
diff options
context:
space:
mode:
authorerg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-11 07:25:40 +0000
committererg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-11 07:25:40 +0000
commitf48b943fa405abdbff3278bd6d29bde6d1ef103b (patch)
treef3ad7676f0e484e5c783ef080cfdfea5cab32f0e /net/http/http_response_headers.cc
parente0392155775eb3dc066d51e78a320a10627a74ad (diff)
downloadchromium_src-f48b943fa405abdbff3278bd6d29bde6d1ef103b.zip
chromium_src-f48b943fa405abdbff3278bd6d29bde6d1ef103b.tar.gz
chromium_src-f48b943fa405abdbff3278bd6d29bde6d1ef103b.tar.bz2
More reordering the methods in headers in net/.
BUG=68682 TEST=compiles Review URL: http://codereview.chromium.org/6186005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71017 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_response_headers.cc')
-rw-r--r--net/http/http_response_headers.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/http/http_response_headers.cc b/net/http/http_response_headers.cc
index c2d098c..85df8d5 100644
--- a/net/http/http_response_headers.cc
+++ b/net/http/http_response_headers.cc
@@ -87,6 +87,17 @@ bool ShouldUpdateHeader(const std::string::const_iterator& name_begin,
} // namespace
+struct HttpResponseHeaders::ParsedHeader {
+ // A header "continuation" contains only a subsequent value for the
+ // preceding header. (Header values are comma separated.)
+ bool is_continuation() const { return name_begin == name_end; }
+
+ std::string::const_iterator name_begin;
+ std::string::const_iterator name_end;
+ std::string::const_iterator value_begin;
+ std::string::const_iterator value_end;
+};
+
//-----------------------------------------------------------------------------
HttpResponseHeaders::HttpResponseHeaders(const std::string& raw_input)