Chromium Code Reviews| 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_ |