| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef WEBMIMEREGISTRY_IMPL_H_ | 5 #ifndef WEBMIMEREGISTRY_IMPL_H_ |
| 6 #define WEBMIMEREGISTRY_IMPL_H_ | 6 #define WEBMIMEREGISTRY_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" |
| 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMimeRegistry.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMimeRegistry.h" |
| 10 #include "webkit/glue/webkit_glue_export.h" |
| 9 | 11 |
| 10 namespace webkit_glue { | 12 namespace webkit_glue { |
| 11 | 13 |
| 12 class SimpleWebMimeRegistryImpl : public WebKit::WebMimeRegistry { | 14 class WEBKIT_GLUE_EXPORT SimpleWebMimeRegistryImpl : |
| 15 NON_EXPORTED_BASE(public WebKit::WebMimeRegistry) { |
| 13 public: | 16 public: |
| 14 SimpleWebMimeRegistryImpl() {} | 17 SimpleWebMimeRegistryImpl() {} |
| 15 virtual ~SimpleWebMimeRegistryImpl() {} | 18 virtual ~SimpleWebMimeRegistryImpl() {} |
| 16 | 19 |
| 17 // WebMimeRegistry methods: | 20 // WebMimeRegistry methods: |
| 18 virtual WebKit::WebMimeRegistry::SupportsType supportsMIMEType( | 21 virtual WebKit::WebMimeRegistry::SupportsType supportsMIMEType( |
| 19 const WebKit::WebString&); | 22 const WebKit::WebString&); |
| 20 virtual WebKit::WebMimeRegistry::SupportsType supportsImageMIMEType( | 23 virtual WebKit::WebMimeRegistry::SupportsType supportsImageMIMEType( |
| 21 const WebKit::WebString&); | 24 const WebKit::WebString&); |
| 22 virtual WebKit::WebMimeRegistry::SupportsType supportsJavaScriptMIMEType( | 25 virtual WebKit::WebMimeRegistry::SupportsType supportsJavaScriptMIMEType( |
| 23 const WebKit::WebString&); | 26 const WebKit::WebString&); |
| 24 virtual WebKit::WebMimeRegistry::SupportsType supportsMediaMIMEType( | 27 virtual WebKit::WebMimeRegistry::SupportsType supportsMediaMIMEType( |
| 25 const WebKit::WebString&, const WebKit::WebString&); | 28 const WebKit::WebString&, const WebKit::WebString&); |
| 26 virtual WebKit::WebMimeRegistry::SupportsType supportsNonImageMIMEType( | 29 virtual WebKit::WebMimeRegistry::SupportsType supportsNonImageMIMEType( |
| 27 const WebKit::WebString&); | 30 const WebKit::WebString&); |
| 28 virtual WebKit::WebString mimeTypeForExtension(const WebKit::WebString&); | 31 virtual WebKit::WebString mimeTypeForExtension(const WebKit::WebString&); |
| 29 virtual WebKit::WebString wellKnownMimeTypeForExtension( | 32 virtual WebKit::WebString wellKnownMimeTypeForExtension( |
| 30 const WebKit::WebString&); | 33 const WebKit::WebString&); |
| 31 virtual WebKit::WebString mimeTypeFromFile(const WebKit::WebString&); | 34 virtual WebKit::WebString mimeTypeFromFile(const WebKit::WebString&); |
| 32 virtual WebKit::WebString preferredExtensionForMIMEType( | 35 virtual WebKit::WebString preferredExtensionForMIMEType( |
| 33 const WebKit::WebString&); | 36 const WebKit::WebString&); |
| 34 }; | 37 }; |
| 35 | 38 |
| 36 } // namespace webkit_glue | 39 } // namespace webkit_glue |
| 37 | 40 |
| 38 #endif // WEBMIMEREGISTRY_IMPL_H_ | 41 #endif // WEBMIMEREGISTRY_IMPL_H_ |
| OLD | NEW |