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

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

Issue 2780463002: Introduce blink::Script (Closed)
Patch Set: style Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Apple Inc. All rights reserved. 2 * Copyright (C) 2006 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // Checks to see if a mime type is suitable for being displayed as an image. 62 // Checks to see if a mime type is suitable for being displayed as an image.
63 static bool isSupportedImagePrefixedMIMEType(const String& mimeType); 63 static bool isSupportedImagePrefixedMIMEType(const String& mimeType);
64 64
65 // Checks to see if a mime type is suitable for being encoded. 65 // Checks to see if a mime type is suitable for being encoded.
66 static bool isSupportedImageMIMETypeForEncoding(const String& mimeType); 66 static bool isSupportedImageMIMETypeForEncoding(const String& mimeType);
67 67
68 // Checks to see if a mime type is suitable for being loaded as a JavaScript 68 // Checks to see if a mime type is suitable for being loaded as a JavaScript
69 // resource. 69 // resource.
70 static bool isSupportedJavaScriptMIMEType(const String& mimeType); 70 static bool isSupportedJavaScriptMIMEType(const String& mimeType);
71 71
72 static bool isLegacySupportedJavaScriptLanguage(const String& language);
kouhei (in TOK) 2017/04/06 09:42:35 Please split CL or document this change in desc
hiroshige 2017/04/06 17:36:29 Split as https://codereview.chromium.org/280652300
73
72 // Checks to see if a non-image mime type is suitable for being loaded as a 74 // Checks to see if a non-image mime type is suitable for being loaded as a
73 // document in a frame. Includes supported JavaScript MIME types. 75 // document in a frame. Includes supported JavaScript MIME types.
74 static bool isSupportedNonImageMIMEType(const String& mimeType); 76 static bool isSupportedNonImageMIMEType(const String& mimeType);
75 77
76 // Checks to see if the mime type and codecs are supported media MIME types. 78 // Checks to see if the mime type and codecs are supported media MIME types.
77 static bool isSupportedMediaMIMEType(const String& mimeType, 79 static bool isSupportedMediaMIMEType(const String& mimeType,
78 const String& codecs); 80 const String& codecs);
79 81
80 // Does similar to isSupportedMediaMIMEType, but returns a little more 82 // Does similar to isSupportedMediaMIMEType, but returns a little more
81 // detailed information in SupportsType enum. 83 // detailed information in SupportsType enum.
(...skipping 14 matching lines...) Expand all
96 // Checks to see if a mime type is suitable for being loaded as a font. 98 // Checks to see if a mime type is suitable for being loaded as a font.
97 static bool isSupportedFontMIMEType(const String& mimeType); 99 static bool isSupportedFontMIMEType(const String& mimeType);
98 100
99 // Checks to see if a mime type is suitable for being loaded as a text track. 101 // Checks to see if a mime type is suitable for being loaded as a text track.
100 static bool isSupportedTextTrackMIMEType(const String& mimeType); 102 static bool isSupportedTextTrackMIMEType(const String& mimeType);
101 }; 103 };
102 104
103 } // namespace blink 105 } // namespace blink
104 106
105 #endif // MIMETypeRegistry_h 107 #endif // MIMETypeRegistry_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698