OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef MOJO_EXAMPLES_HTML_VIEWER_WEBMIMEREGISTRY_IMPL_H_ | |
6 #define MOJO_EXAMPLES_HTML_VIEWER_WEBMIMEREGISTRY_IMPL_H_ | |
7 | |
8 #include "base/compiler_specific.h" | |
9 #include "third_party/WebKit/public/platform/WebMimeRegistry.h" | |
10 | |
11 namespace mojo { | |
12 namespace examples { | |
13 | |
14 class WebMimeRegistryImpl : public blink::WebMimeRegistry { | |
15 public: | |
16 WebMimeRegistryImpl() {} | |
17 virtual ~WebMimeRegistryImpl() {} | |
18 | |
19 // WebMimeRegistry methods: | |
20 virtual blink::WebMimeRegistry::SupportsType supportsMIMEType( | |
21 const blink::WebString& mime_type) OVERRIDE; | |
22 virtual blink::WebMimeRegistry::SupportsType supportsImageMIMEType( | |
jamesr
2014/06/20 05:58:08
no OVERRIDEs please
| |
23 const blink::WebString& mime_type) OVERRIDE; | |
24 virtual blink::WebMimeRegistry::SupportsType supportsJavaScriptMIMEType( | |
25 const blink::WebString& mime_type) OVERRIDE; | |
26 virtual blink::WebMimeRegistry::SupportsType supportsMediaMIMEType( | |
27 const blink::WebString& mime_type, | |
28 const blink::WebString& codecs, | |
29 const blink::WebString& key_system) OVERRIDE; | |
30 virtual bool supportsMediaSourceMIMEType( | |
31 const blink::WebString& mime_type, | |
32 const blink::WebString& codecs) OVERRIDE; | |
33 virtual bool supportsEncryptedMediaMIMEType( | |
34 const blink::WebString& key_system, | |
35 const blink::WebString& mime_type, | |
36 const blink::WebString& codecs) OVERRIDE; | |
37 virtual blink::WebMimeRegistry::SupportsType supportsNonImageMIMEType( | |
38 const blink::WebString& mime_type) OVERRIDE; | |
39 virtual blink::WebString mimeTypeForExtension( | |
40 const blink::WebString& extension) OVERRIDE; | |
41 virtual blink::WebString wellKnownMimeTypeForExtension( | |
42 const blink::WebString& extension) OVERRIDE; | |
43 virtual blink::WebString mimeTypeFromFile( | |
44 const blink::WebString& path) OVERRIDE; | |
45 }; | |
46 | |
47 } // namespace examples | |
48 } // namespace mojo | |
49 | |
50 #endif // MOJO_EXAMPLES_HTML_VIEWER_WEBMIMEREGISTRY_IMPL_H_ | |
OLD | NEW |