OLD | NEW |
(Empty) | |
| 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 CHROME_RENDERER_RENDERER_WEBKIT_CLIENT_IMPL_H_ |
| 6 #define CHROME_RENDERER_RENDERER_WEBKIT_CLIENT_IMPL_H_ |
| 7 |
| 8 #include "webkit/glue/simple_webmimeregistry_impl.h" |
| 9 #include "webkit/glue/webkitclient_impl.h" |
| 10 |
| 11 class RendererWebKitClientImpl : public webkit_glue::WebKitClientImpl { |
| 12 public: |
| 13 // WebKitClient methods: |
| 14 virtual WebKit::WebMimeRegistry* mimeRegistry() { |
| 15 return &mime_registry_; |
| 16 } |
| 17 |
| 18 private: |
| 19 class MimeRegistry : public webkit_glue::SimpleWebMimeRegistryImpl { |
| 20 public: |
| 21 virtual WebKit::WebString mimeTypeForExtension(const WebKit::WebString&); |
| 22 virtual WebKit::WebString mimeTypeFromFile(const WebKit::WebString&); |
| 23 virtual WebKit::WebString preferredExtensionForMIMEType( |
| 24 const WebKit::WebString&); |
| 25 }; |
| 26 |
| 27 MimeRegistry mime_registry_; |
| 28 }; |
| 29 |
| 30 #endif // CHROME_RENDERER_WEBKIT_CLIENT_IMPL_H_ |
OLD | NEW |