Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Unified Diff: third_party/WebKit/Source/platform/mime/WebMimeRegistryImpl.h

Issue 2444873002: Move WebMIMERegistry impl from //content to blink:platform/network/mime (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698