OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_MIME_REGISTRY_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_MIME_REGISTRY_IMPL_H_ |
6 #define CONTENT_BROWSER_MIME_REGISTRY_IMPL_H_ | 6 #define CONTENT_BROWSER_MIME_REGISTRY_IMPL_H_ |
7 | 7 |
8 #include "third_party/WebKit/public/platform/mime_registry.mojom.h" | 8 #include "third_party/WebKit/public/platform/mime_registry.mojom.h" |
9 | 9 |
| 10 namespace service_manager { |
| 11 struct BindSourceInfo; |
| 12 } |
| 13 |
10 namespace content { | 14 namespace content { |
11 | 15 |
12 class MimeRegistryImpl : public blink::mojom::MimeRegistry { | 16 class MimeRegistryImpl : public blink::mojom::MimeRegistry { |
13 public: | 17 public: |
14 MimeRegistryImpl(); | 18 MimeRegistryImpl(); |
15 ~MimeRegistryImpl() override; | 19 ~MimeRegistryImpl() override; |
16 | 20 |
17 static void Create(blink::mojom::MimeRegistryRequest request); | 21 static void Create(const service_manager::BindSourceInfo& source_info, |
| 22 blink::mojom::MimeRegistryRequest request); |
18 | 23 |
19 private: | 24 private: |
20 void GetMimeTypeFromExtension( | 25 void GetMimeTypeFromExtension( |
21 const std::string& extension, | 26 const std::string& extension, |
22 const GetMimeTypeFromExtensionCallback& callback) override; | 27 const GetMimeTypeFromExtensionCallback& callback) override; |
23 }; | 28 }; |
24 | 29 |
25 } // namespace content | 30 } // namespace content |
26 | 31 |
27 #endif // CONTENT_BROWSER_MIME_REGISTRY_IMPL_H_ | 32 #endif // CONTENT_BROWSER_MIME_REGISTRY_IMPL_H_ |
OLD | NEW |