OLD | NEW |
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 Loading... |
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 |
OLD | NEW |