Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 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 WebMimeRegistryImpl_h | |
| 6 #define WebMimeRegistryImpl_h | |
| 7 | |
| 8 #include "public/platform/WebMimeRegistry.h" | |
| 9 #include "public/platform/mime_registry.mojom-blink.h" | |
| 10 #include "wtf/Forward.h" | |
| 11 #include <string> | |
| 12 | |
| 13 namespace blink { | |
| 14 | |
| 15 class PLATFORM_EXPORT WebMimeRegistryImpl : public WebMimeRegistry { | |
| 16 public: | |
| 17 WebMimeRegistryImpl() {} | |
| 18 ~WebMimeRegistryImpl() {} | |
| 19 | |
| 20 SupportsType supportsMIMEType(const WebString& mimeType) override; | |
|
esprehn
2016/10/25 00:28:11
We don't need to use WebString or virtuals anymore
| |
| 21 SupportsType supportsImageMIMEType(const WebString& mimeType) override; | |
| 22 SupportsType supportsImagePrefixedMIMEType( | |
| 23 const WebString& mimeType) override; | |
| 24 SupportsType supportsJavaScriptMIMEType(const WebString& mimeType) override; | |
| 25 SupportsType supportsMediaMIMEType(const WebString& mimeType, | |
| 26 const WebString& codecs) override; | |
| 27 bool supportsMediaSourceMIMEType(const WebString& mimeType, | |
| 28 const WebString& codecs) override; | |
| 29 SupportsType supportsNonImageMIMEType(const WebString& mimeType) override; | |
| 30 WebString mimeTypeForExtension(const WebString& fileExtension) override; | |
| 31 WebString wellKnownMimeTypeForExtension( | |
| 32 const WebString& fileExtension) override; | |
| 33 | |
| 34 private: | |
| 35 mojom::blink::MimeRegistryPtr m_mimeRegistry; | |
| 36 }; | |
| 37 | |
| 38 } // namespace blink | |
| 39 | |
| 40 #endif // WebMimeRegistryImpl_h | |
| OLD | NEW |