blob: 17f7f1bee3f4f114239d5371b02a5cd33377e01e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
// 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 COMPONENTS_HTML_VIEWER_WEB_MIME_REGISTRY_IMPL_H_
#define COMPONENTS_HTML_VIEWER_WEB_MIME_REGISTRY_IMPL_H_
#include "base/compiler_specific.h"
#include "third_party/WebKit/public/platform/WebMimeRegistry.h"
namespace html_viewer {
class WebMimeRegistryImpl : public blink::WebMimeRegistry {
public:
WebMimeRegistryImpl() {}
virtual ~WebMimeRegistryImpl() {}
// WebMimeRegistry methods:
virtual blink::WebMimeRegistry::SupportsType supportsMIMEType(
const blink::WebString& mime_type);
virtual blink::WebMimeRegistry::SupportsType supportsImageMIMEType(
const blink::WebString& mime_type);
virtual blink::WebMimeRegistry::SupportsType supportsImagePrefixedMIMEType(
const blink::WebString& mime_type);
virtual blink::WebMimeRegistry::SupportsType supportsJavaScriptMIMEType(
const blink::WebString& mime_type);
virtual blink::WebMimeRegistry::SupportsType supportsMediaMIMEType(
const blink::WebString& mime_type,
const blink::WebString& codecs,
const blink::WebString& key_system);
virtual bool supportsMediaSourceMIMEType(const blink::WebString& mime_type,
const blink::WebString& codecs);
virtual blink::WebMimeRegistry::SupportsType supportsNonImageMIMEType(
const blink::WebString& mime_type);
virtual blink::WebString mimeTypeForExtension(
const blink::WebString& extension);
virtual blink::WebString wellKnownMimeTypeForExtension(
const blink::WebString& extension);
virtual blink::WebString mimeTypeFromFile(const blink::WebString& path);
};
} // namespace html_viewer
#endif // COMPONENTS_HTML_VIEWER_WEB_MIME_REGISTRY_IMPL_H_
|