Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(241)

Side by Side Diff: chrome/renderer/renderer_webkitclient_impl.h

Issue 27222: Chrome side to implement WebMimeRegistry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698