Index: mojo/examples/html_viewer/webmimeregistry_impl.h |
diff --git a/mojo/examples/html_viewer/webmimeregistry_impl.h b/mojo/examples/html_viewer/webmimeregistry_impl.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..cb6f654846b3057abfee610c6ab2406bd8340c2f |
--- /dev/null |
+++ b/mojo/examples/html_viewer/webmimeregistry_impl.h |
@@ -0,0 +1,50 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef MOJO_EXAMPLES_HTML_VIEWER_WEBMIMEREGISTRY_IMPL_H_ |
+#define MOJO_EXAMPLES_HTML_VIEWER_WEBMIMEREGISTRY_IMPL_H_ |
+ |
+#include "base/compiler_specific.h" |
+#include "third_party/WebKit/public/platform/WebMimeRegistry.h" |
+ |
+namespace mojo { |
+namespace examples { |
+ |
+class WebMimeRegistryImpl : public blink::WebMimeRegistry { |
+ public: |
+ WebMimeRegistryImpl() {} |
+ virtual ~WebMimeRegistryImpl() {} |
+ |
+ // WebMimeRegistry methods: |
+ virtual blink::WebMimeRegistry::SupportsType supportsMIMEType( |
+ const blink::WebString& mime_type) OVERRIDE; |
+ virtual blink::WebMimeRegistry::SupportsType supportsImageMIMEType( |
jamesr
2014/06/20 05:58:08
no OVERRIDEs please
|
+ const blink::WebString& mime_type) OVERRIDE; |
+ virtual blink::WebMimeRegistry::SupportsType supportsJavaScriptMIMEType( |
+ const blink::WebString& mime_type) OVERRIDE; |
+ virtual blink::WebMimeRegistry::SupportsType supportsMediaMIMEType( |
+ const blink::WebString& mime_type, |
+ const blink::WebString& codecs, |
+ const blink::WebString& key_system) OVERRIDE; |
+ virtual bool supportsMediaSourceMIMEType( |
+ const blink::WebString& mime_type, |
+ const blink::WebString& codecs) OVERRIDE; |
+ virtual bool supportsEncryptedMediaMIMEType( |
+ const blink::WebString& key_system, |
+ const blink::WebString& mime_type, |
+ const blink::WebString& codecs) OVERRIDE; |
+ virtual blink::WebMimeRegistry::SupportsType supportsNonImageMIMEType( |
+ const blink::WebString& mime_type) OVERRIDE; |
+ virtual blink::WebString mimeTypeForExtension( |
+ const blink::WebString& extension) OVERRIDE; |
+ virtual blink::WebString wellKnownMimeTypeForExtension( |
+ const blink::WebString& extension) OVERRIDE; |
+ virtual blink::WebString mimeTypeFromFile( |
+ const blink::WebString& path) OVERRIDE; |
+}; |
+ |
+} // namespace examples |
+} // namespace mojo |
+ |
+#endif // MOJO_EXAMPLES_HTML_VIEWER_WEBMIMEREGISTRY_IMPL_H_ |