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

Side by Side 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, 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 // 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.
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 CONTENT_BROWSER_MIME_REGISTRY_IMPL_H_
6 #define CONTENT_BROWSER_MIME_REGISTRY_IMPL_H_
7
8 #include "mojo/public/cpp/bindings/strong_binding.h"
9 #include "third_party/WebKit/public/platform/mime_registry.mojom.h"
10
11 namespace content {
12
13 class MimeRegistryImpl : public blink::mojom::MimeRegistry {
14 public:
15 static void Create(blink::mojom::MimeRegistryRequest request);
16
17 private:
18 MimeRegistryImpl(blink::mojom::MimeRegistryRequest request);
19 ~MimeRegistryImpl() override;
20
21 void GetMimeTypeFromExtension(
22 const mojo::String& extension,
23 const GetMimeTypeFromExtensionCallback& callback) override;
24
25 mojo::StrongBinding<blink::mojom::MimeRegistry> binding_;
26 };
27
28 } // namespace content
29
30 #endif // CONTENT_BROWSER_MIME_REGISTRY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698