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

Side by Side Diff: third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp

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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "platform/MIMETypeRegistry.h" 5 #include "platform/network/mime/MIMETypeRegistry.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "components/mime_util/mime_util.h" 9 #include "components/mime_util/mime_util.h"
10 #include "media/base/mime_util.h" 10 #include "media/base/mime_util.h"
11 #include "media/filters/stream_parser_factory.h" 11 #include "media/filters/stream_parser_factory.h"
12 #include "net/base/mime_util.h" 12 #include "net/base/mime_util.h"
13 #include "public/platform/FilePathConversion.h" 13 #include "public/platform/FilePathConversion.h"
14 #include "public/platform/InterfaceProvider.h" 14 #include "public/platform/InterfaceProvider.h"
15 #include "public/platform/Platform.h" 15 #include "public/platform/Platform.h"
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 String subType = mimeType.substring(fontLen).lower(); 180 String subType = mimeType.substring(fontLen).lower();
181 return subType == "woff" || subType == "woff2" || subType == "otf" || 181 return subType == "woff" || subType == "woff2" || subType == "otf" ||
182 subType == "ttf" || subType == "sfnt"; 182 subType == "ttf" || subType == "sfnt";
183 } 183 }
184 184
185 bool MIMETypeRegistry::isSupportedTextTrackMIMEType(const String& mimeType) { 185 bool MIMETypeRegistry::isSupportedTextTrackMIMEType(const String& mimeType) {
186 return equalIgnoringCase(mimeType, "text/vtt"); 186 return equalIgnoringCase(mimeType, "text/vtt");
187 } 187 }
188 188
189 } // namespace blink 189 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698