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

Unified Diff: content/browser/mime_registry_impl.h

Issue 2024363002: Convert MimeRegistry to use mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@message-mojom-magic
Patch Set: Created 4 years, 7 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
« no previous file with comments | « content/browser/android/service_registry_android_impl.cc ('k') | content/browser/mime_registry_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/mime_registry_impl.h
diff --git a/content/browser/mime_registry_impl.h b/content/browser/mime_registry_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..8adb70feb17c7caadbee2d9df0c2bd9cfdd223fd
--- /dev/null
+++ b/content/browser/mime_registry_impl.h
@@ -0,0 +1,30 @@
+// 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 CONTENT_BROWSER_MIME_REGISTRY_IMPL_H_
+#define CONTENT_BROWSER_MIME_REGISTRY_IMPL_H_
+
+#include "mojo/public/cpp/bindings/strong_binding.h"
+#include "third_party/WebKit/public/platform/mime_registry.mojom.h"
+
+namespace content {
+
+class MimeRegistryImpl : public blink::mojom::MimeRegistry {
+ public:
+ static void Create(blink::mojom::MimeRegistryRequest request);
+
+ private:
+ MimeRegistryImpl(blink::mojom::MimeRegistryRequest request);
+ ~MimeRegistryImpl() override;
+
+ void GetMimeTypeFromExtension(
+ const mojo::String& extension,
+ const GetMimeTypeFromExtensionCallback& callback) override;
+
+ mojo::StrongBinding<blink::mojom::MimeRegistry> binding_;
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_MIME_REGISTRY_IMPL_H_
« no previous file with comments | « content/browser/android/service_registry_android_impl.cc ('k') | content/browser/mime_registry_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698