Chromium Code Reviews| Index: third_party/WebKit/Source/platform/mime/WebMimeRegistryImpl.h |
| diff --git a/third_party/WebKit/Source/platform/mime/WebMimeRegistryImpl.h b/third_party/WebKit/Source/platform/mime/WebMimeRegistryImpl.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b32e614d2b862167a2eb932aa4ca20ff1f547d38 |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/platform/mime/WebMimeRegistryImpl.h |
| @@ -0,0 +1,40 @@ |
| +// Copyright 2016 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 WebMimeRegistryImpl_h |
| +#define WebMimeRegistryImpl_h |
| + |
| +#include "public/platform/WebMimeRegistry.h" |
| +#include "public/platform/mime_registry.mojom-blink.h" |
| +#include "wtf/Forward.h" |
| +#include <string> |
| + |
| +namespace blink { |
| + |
| +class PLATFORM_EXPORT WebMimeRegistryImpl : public WebMimeRegistry { |
| + public: |
| + WebMimeRegistryImpl() {} |
| + ~WebMimeRegistryImpl() {} |
| + |
| + SupportsType supportsMIMEType(const WebString& mimeType) override; |
|
esprehn
2016/10/25 00:28:11
We don't need to use WebString or virtuals anymore
|
| + SupportsType supportsImageMIMEType(const WebString& mimeType) override; |
| + SupportsType supportsImagePrefixedMIMEType( |
| + const WebString& mimeType) override; |
| + SupportsType supportsJavaScriptMIMEType(const WebString& mimeType) override; |
| + SupportsType supportsMediaMIMEType(const WebString& mimeType, |
| + const WebString& codecs) override; |
| + bool supportsMediaSourceMIMEType(const WebString& mimeType, |
| + const WebString& codecs) override; |
| + SupportsType supportsNonImageMIMEType(const WebString& mimeType) override; |
| + WebString mimeTypeForExtension(const WebString& fileExtension) override; |
| + WebString wellKnownMimeTypeForExtension( |
| + const WebString& fileExtension) override; |
| + |
| + private: |
| + mojom::blink::MimeRegistryPtr m_mimeRegistry; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // WebMimeRegistryImpl_h |