OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010, Google Inc. All rights reserved. | 2 * Copyright (c) 2010, Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 static int memoryUsageMB(); | 197 static int memoryUsageMB(); |
198 | 198 |
199 // Same as above, but always returns actual value, without any caches. | 199 // Same as above, but always returns actual value, without any caches. |
200 static int actualMemoryUsageMB(); | 200 static int actualMemoryUsageMB(); |
201 | 201 |
202 // MimeType ----------------------------------------------------------- | 202 // MimeType ----------------------------------------------------------- |
203 static bool isSupportedImageMIMEType(const String& mimeType); | 203 static bool isSupportedImageMIMEType(const String& mimeType); |
204 static bool isSupportedJavaScriptMIMEType(const String& mimeType); | 204 static bool isSupportedJavaScriptMIMEType(const String& mimeType); |
205 static bool isSupportedNonImageMIMEType(const String& mimeType); | 205 static bool isSupportedNonImageMIMEType(const String& mimeType); |
206 static String mimeTypeForExtension(const String& fileExtension); | 206 static String mimeTypeForExtension(const String& fileExtension); |
| 207 static String wellKnownMimeTypeForExtension(const String& fileExtension); |
207 static String mimeTypeFromFile(const String& filePath); | 208 static String mimeTypeFromFile(const String& filePath); |
208 static String preferredExtensionForMIMEType(const String& mimeType); | 209 static String preferredExtensionForMIMEType(const String& mimeType); |
209 | 210 |
210 // Plugin ------------------------------------------------------------- | 211 // Plugin ------------------------------------------------------------- |
211 static bool plugins(bool refresh, Vector<PluginInfo>*); | 212 static bool plugins(bool refresh, Vector<PluginInfo>*); |
212 static NPObject* pluginScriptableObject(Widget*); | 213 static NPObject* pluginScriptableObject(Widget*); |
213 static bool popupsAllowed(NPP); | 214 static bool popupsAllowed(NPP); |
214 | 215 |
215 // Resources ---------------------------------------------------------- | 216 // Resources ---------------------------------------------------------- |
216 static PassRefPtr<Image> loadPlatformImageResource(const char* name); | 217 static PassRefPtr<Image> loadPlatformImageResource(const char* name); |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 | 406 |
406 // Visited links ------------------------------------------------------ | 407 // Visited links ------------------------------------------------------ |
407 static LinkHash visitedLinkHash(const UChar* url, unsigned length); | 408 static LinkHash visitedLinkHash(const UChar* url, unsigned length); |
408 static LinkHash visitedLinkHash(const KURL& base, const AtomicString& attrib
uteURL); | 409 static LinkHash visitedLinkHash(const KURL& base, const AtomicString& attrib
uteURL); |
409 static bool isLinkVisited(LinkHash); | 410 static bool isLinkVisited(LinkHash); |
410 }; | 411 }; |
411 | 412 |
412 } // namespace WebCore | 413 } // namespace WebCore |
413 | 414 |
414 #endif | 415 #endif |
OLD | NEW |