base: Change DCHECK_IS_ON to a macro DCHECK_IS_ON().
[chromium-blink-merge.git] / mojo / services / html_viewer / webmimeregistry_impl.h
blobf8d36e76a194319a26b45930c083171281513c10
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.
5 #ifndef MOJO_SERVICES_HTML_VIEWER_WEBMIMEREGISTRY_IMPL_H_
6 #define MOJO_SERVICES_HTML_VIEWER_WEBMIMEREGISTRY_IMPL_H_
8 #include "base/compiler_specific.h"
9 #include "third_party/WebKit/public/platform/WebMimeRegistry.h"
11 namespace html_viewer {
13 class WebMimeRegistryImpl : public blink::WebMimeRegistry {
14 public:
15 WebMimeRegistryImpl() {}
16 virtual ~WebMimeRegistryImpl() {}
18 // WebMimeRegistry methods:
19 virtual blink::WebMimeRegistry::SupportsType supportsMIMEType(
20 const blink::WebString& mime_type);
21 virtual blink::WebMimeRegistry::SupportsType supportsImageMIMEType(
22 const blink::WebString& mime_type);
23 virtual blink::WebMimeRegistry::SupportsType supportsImagePrefixedMIMEType(
24 const blink::WebString& mime_type);
25 virtual blink::WebMimeRegistry::SupportsType supportsJavaScriptMIMEType(
26 const blink::WebString& mime_type);
27 virtual blink::WebMimeRegistry::SupportsType supportsMediaMIMEType(
28 const blink::WebString& mime_type,
29 const blink::WebString& codecs,
30 const blink::WebString& key_system);
31 virtual bool supportsMediaSourceMIMEType(
32 const blink::WebString& mime_type,
33 const blink::WebString& codecs);
34 virtual bool supportsEncryptedMediaMIMEType(
35 const blink::WebString& key_system,
36 const blink::WebString& mime_type,
37 const blink::WebString& codecs);
38 virtual blink::WebMimeRegistry::SupportsType supportsNonImageMIMEType(
39 const blink::WebString& mime_type);
40 virtual blink::WebString mimeTypeForExtension(
41 const blink::WebString& extension);
42 virtual blink::WebString wellKnownMimeTypeForExtension(
43 const blink::WebString& extension);
44 virtual blink::WebString mimeTypeFromFile(
45 const blink::WebString& path);
48 } // namespace html_viewer
50 #endif // MOJO_SERVICES_HTML_VIEWER_WEBMIMEREGISTRY_IMPL_H_