diff options
author | abarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-27 20:39:11 +0000 |
---|---|---|
committer | abarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-27 20:39:11 +0000 |
commit | aab0d2e2f0167b5bb29f670c8e7229e9c5f3f57e (patch) | |
tree | aab07ed223862bc3de70351c711f471fc8ea8d92 /net/http/http_content_disposition.h | |
parent | ab34561dd992607626f7b7c7ee06d429de55df04 (diff) | |
download | chromium_src-aab0d2e2f0167b5bb29f670c8e7229e9c5f3f57e.zip chromium_src-aab0d2e2f0167b5bb29f670c8e7229e9c5f3f57e.tar.gz chromium_src-aab0d2e2f0167b5bb29f670c8e7229e9c5f3f57e.tar.bz2 |
Import Content-Disposition parsing tests from http://greenbytes.de/tech/tc2231/
We pass the vast majority of these tests. In a future CL, I will go through
and fix the ones where we disagree with tc2231 (as appropriate).
Review URL: https://chromiumcodereview.appspot.com/9121044
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119489 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_content_disposition.h')
-rw-r--r-- | net/http/http_content_disposition.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/http/http_content_disposition.h b/net/http/http_content_disposition.h index c75610a..39b5ade 100644 --- a/net/http/http_content_disposition.h +++ b/net/http/http_content_disposition.h @@ -24,6 +24,7 @@ class NET_EXPORT_PRIVATE HttpContentDisposition { const std::string& referrer_charset); ~HttpContentDisposition(); + Type type() const { return type_; } const std::string& filename() const { return filename_; } private: @@ -31,7 +32,7 @@ class NET_EXPORT_PRIVATE HttpContentDisposition { std::string::const_iterator ConsumeDispositionType( std::string::const_iterator begin, std::string::const_iterator end); - Type type_; // TODO(abarth): Add an accessor and tests. + Type type_; std::string filename_; DISALLOW_COPY_AND_ASSIGN(HttpContentDisposition); |