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

Unified Diff: third_party/WebKit/Source/platform/network/mime/ContentType.h

Issue 2482653002: Move MIME related platform files under network/mime (Closed)
Patch Set: fix Created 4 years 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: third_party/WebKit/Source/platform/network/mime/ContentType.h
diff --git a/third_party/WebKit/Source/platform/network/mime/ContentType.h b/third_party/WebKit/Source/platform/network/mime/ContentType.h
new file mode 100644
index 0000000000000000000000000000000000000000..66289f65adf27ff3bdec23b373e8aa4dca7eb58b
--- /dev/null
+++ b/third_party/WebKit/Source/platform/network/mime/ContentType.h
@@ -0,0 +1,31 @@
+// Copyright 2016 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 ContentType_h
+#define ContentType_h
+
+#include "platform/PlatformExport.h"
+#include "wtf/Allocator.h"
+#include "wtf/text/WTFString.h"
+
+namespace blink {
+
+// Parses the MIME type and parameter values based on RFC 2231.
+class PLATFORM_EXPORT ContentType {
+ STACK_ALLOCATED();
+
+ public:
+ explicit ContentType(const String& type);
+
+ String parameter(const String& parameterName) const;
+ String type() const;
+ const String& raw() const { return m_type; }
+
+ private:
+ String m_type;
+};
+
+} // namespace blink
+
+#endif // ContentType_h

Powered by Google App Engine
This is Rietveld 408576698