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

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
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..1bada38679fec67b1063acc0874d0f41e168a0b3
--- /dev/null
+++ b/content/browser/mime_registry_impl.h
@@ -0,0 +1,30 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
nasko 2016/06/02 21:31:41 No (c) and 2016, since this is a new file, not a r
Sam McNally 2016/06/02 23:49:39 Done.
+// 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_

Powered by Google App Engine
This is Rietveld 408576698