Home | History | Annotate | Download | only in glue
      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
      3 // LICENSE file.
      4 
      5 #ifndef WEBMIMEREGISTRY_IMPL_H_
      6 #define WEBMIMEREGISTRY_IMPL_H_
      7 
      8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMimeRegistry.h"
      9 
     10 namespace webkit_glue {
     11 
     12 class SimpleWebMimeRegistryImpl : public WebKit::WebMimeRegistry {
     13  public:
     14   SimpleWebMimeRegistryImpl() {}
     15   virtual ~SimpleWebMimeRegistryImpl() {}
     16 
     17   // WebMimeRegistry methods:
     18   virtual WebKit::WebMimeRegistry::SupportsType supportsMIMEType(
     19       const WebKit::WebString&);
     20   virtual WebKit::WebMimeRegistry::SupportsType supportsImageMIMEType(
     21       const WebKit::WebString&);
     22   virtual WebKit::WebMimeRegistry::SupportsType supportsJavaScriptMIMEType(
     23       const WebKit::WebString&);
     24   virtual WebKit::WebMimeRegistry::SupportsType supportsMediaMIMEType(
     25       const WebKit::WebString&, const WebKit::WebString&);
     26   virtual WebKit::WebMimeRegistry::SupportsType supportsNonImageMIMEType(
     27       const WebKit::WebString&);
     28   virtual WebKit::WebString mimeTypeForExtension(const WebKit::WebString&);
     29   virtual WebKit::WebString mimeTypeFromFile(const WebKit::WebString&);
     30   virtual WebKit::WebString preferredExtensionForMIMEType(
     31       const WebKit::WebString&);
     32 };
     33 
     34 }  // namespace webkit_glue
     35 
     36 #endif  // WEBMIMEREGISTRY_IMPL_H_
     37