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

Unified Diff: net/base/mime_util.cc

Issue 862133002: Update from https://crrev.com/312398 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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/base/mime_util.cc
diff --git a/net/base/mime_util.cc b/net/base/mime_util.cc
index cba37a452b78662f3304120741f1ad840046010c..d1b67d580e2713c8a7baf16d3d432bda18001f12 100644
--- a/net/base/mime_util.cc
+++ b/net/base/mime_util.cc
@@ -25,27 +25,6 @@
using std::string;
-namespace {
-
-struct MediaType {
- const char name[12];
- const char matcher[13];
-};
-
-static const MediaType kIanaMediaTypes[] = {
- { "application", "application/" },
- { "audio", "audio/" },
- { "example", "example/" },
- { "image", "image/" },
- { "message", "message/" },
- { "model", "model/" },
- { "multipart", "multipart/" },
- { "text", "text/" },
- { "video", "video/" },
-};
-
-} // namespace
-
namespace net {
// Singleton utility class for mime types.
@@ -1364,15 +1343,6 @@ void RemoveProprietaryMediaTypesAndCodecsForTests() {
g_mime_util.Get().RemoveProprietaryMediaTypesAndCodecsForTests();
}
-const std::string GetIANAMediaType(const std::string& mime_type) {
- for (size_t i = 0; i < arraysize(kIanaMediaTypes); ++i) {
- if (StartsWithASCII(mime_type, kIanaMediaTypes[i].matcher, true)) {
- return kIanaMediaTypes[i].name;
- }
- }
- return std::string();
-}
-
CertificateMimeType GetCertificateMimeTypeForMimeType(
const std::string& mime_type) {
// Don't create a map, there is only one entry in the table,
« no previous file with comments | « net/base/mime_util.h ('k') | net/base/mime_util_unittest.cc » ('j') | shell/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698