OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
3 // LICENSE file. | 3 // LICENSE file. |
4 | 4 |
5 #ifndef WEBMIMEREGISTRY_IMPL_H_ | 5 #ifndef WEBMIMEREGISTRY_IMPL_H_ |
6 #define WEBMIMEREGISTRY_IMPL_H_ | 6 #define WEBMIMEREGISTRY_IMPL_H_ |
7 | 7 |
8 #include "webkit/api/public/WebMimeRegistry.h" | 8 #include "webkit/api/public/WebMimeRegistry.h" |
9 | 9 |
10 namespace webkit_glue { | 10 namespace webkit_glue { |
11 | 11 |
12 class SimpleWebMimeRegistryImpl : public WebKit::WebMimeRegistry { | 12 class SimpleWebMimeRegistryImpl : public WebKit::WebMimeRegistry { |
13 public: | 13 public: |
14 // WebMimeRegistry methods: | 14 // WebMimeRegistry methods: |
15 virtual bool supportsImageMIMEType(const WebKit::WebString&); | 15 virtual WebKit::WebMimeRegistry::SupportsType supportsImageMIMEType( |
16 virtual bool supportsJavaScriptMIMEType(const WebKit::WebString&); | 16 const WebKit::WebString&); |
17 virtual bool supportsMediaMIMEType(const WebKit::WebString&); | 17 virtual WebKit::WebMimeRegistry::SupportsType supportsJavaScriptMIMEType( |
18 virtual bool supportsNonImageMIMEType(const WebKit::WebString&); | 18 const WebKit::WebString&); |
| 19 virtual WebKit::WebMimeRegistry::SupportsType supportsMediaMIMEType( |
| 20 const WebKit::WebString&, const WebKit::WebString&); |
| 21 virtual WebKit::WebMimeRegistry::SupportsType supportsNonImageMIMEType( |
| 22 const WebKit::WebString&); |
19 virtual WebKit::WebString mimeTypeForExtension(const WebKit::WebString&); | 23 virtual WebKit::WebString mimeTypeForExtension(const WebKit::WebString&); |
20 virtual WebKit::WebString mimeTypeFromFile(const WebKit::WebString&); | 24 virtual WebKit::WebString mimeTypeFromFile(const WebKit::WebString&); |
21 virtual WebKit::WebString preferredExtensionForMIMEType( | 25 virtual WebKit::WebString preferredExtensionForMIMEType( |
22 const WebKit::WebString&); | 26 const WebKit::WebString&); |
23 }; | 27 }; |
24 | 28 |
25 } // namespace webkit_glue | 29 } // namespace webkit_glue |
26 | 30 |
27 #endif // WEBMIMEREGISTRY_IMPL_H_ | 31 #endif // WEBMIMEREGISTRY_IMPL_H_ |
OLD | NEW |