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

Unified Diff: net/http/http_content_disposition.h

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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/http/http_chunked_decoder_unittest.cc ('k') | net/http/http_content_disposition.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_content_disposition.h
diff --git a/net/http/http_content_disposition.h b/net/http/http_content_disposition.h
deleted file mode 100644
index 2b4ca709eb3cbb581bab6c9101eda889fc0a3141..0000000000000000000000000000000000000000
--- a/net/http/http_content_disposition.h
+++ /dev/null
@@ -1,79 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef NET_HTTP_HTTP_CONTENT_DISPOSITION_H_
-#define NET_HTTP_HTTP_CONTENT_DISPOSITION_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "net/base/net_export.h"
-
-namespace net {
-
-class NET_EXPORT HttpContentDisposition {
- public:
- enum Type {
- INLINE,
- ATTACHMENT,
- };
-
- // Properties of the Content-Disposition header. Used for UMA.
- enum ParseResultFlags {
- INVALID = 0,
-
- // A valid disposition-type is present.
- HAS_DISPOSITION_TYPE = 1 << 0,
-
- // The disposition-type is not 'inline' or 'attachment'.
- HAS_UNKNOWN_DISPOSITION_TYPE = 1 << 1,
-
- // Has a valid non-empty 'name' attribute.
- HAS_NAME = 1 << 2,
-
- // Has a valid non-empty 'filename' attribute.
- HAS_FILENAME = 1 << 3,
-
- // Has a valid non-empty 'filename*' attribute.
- HAS_EXT_FILENAME = 1 << 4,
-
- // The following fields are properties of the 'filename' attribute:
-
- // Quoted-string contains non-ASCII characters.
- HAS_NON_ASCII_STRINGS = 1 << 5,
-
- // Quoted-string contains percent-encoding.
- HAS_PERCENT_ENCODED_STRINGS = 1 << 6,
-
- // Quoted-string contains RFC 2047 encoded words.
- HAS_RFC2047_ENCODED_STRINGS = 1 << 7
- };
-
- HttpContentDisposition(const std::string& header,
- const std::string& referrer_charset);
- ~HttpContentDisposition();
-
- bool is_attachment() const { return type() == ATTACHMENT; }
-
- Type type() const { return type_; }
- const std::string& filename() const { return filename_; }
-
- // A combination of ParseResultFlags values.
- int parse_result_flags() const { return parse_result_flags_; }
-
- private:
- void Parse(const std::string& header, const std::string& referrer_charset);
- std::string::const_iterator ConsumeDispositionType(
- std::string::const_iterator begin, std::string::const_iterator end);
-
- Type type_;
- std::string filename_;
- int parse_result_flags_;
-
- DISALLOW_COPY_AND_ASSIGN(HttpContentDisposition);
-};
-
-} // namespace net
-
-#endif // NET_HTTP_HTTP_CONTENT_DISPOSITION_H_
« no previous file with comments | « net/http/http_chunked_decoder_unittest.cc ('k') | net/http/http_content_disposition.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698