OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_INSTALLEDAPP_INSTALLED_APP_PROVIDER_IMPL_DEFAULT_H | 5 #ifndef CONTENT_BROWSER_INSTALLEDAPP_INSTALLED_APP_PROVIDER_IMPL_DEFAULT_H |
6 #define CONTENT_BROWSER_INSTALLEDAPP_INSTALLED_APP_PROVIDER_IMPL_DEFAULT_H | 6 #define CONTENT_BROWSER_INSTALLEDAPP_INSTALLED_APP_PROVIDER_IMPL_DEFAULT_H |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "third_party/WebKit/public/platform/modules/installedapp/installed_app_
provider.mojom.h" | 11 #include "third_party/WebKit/public/platform/modules/installedapp/installed_app_
provider.mojom.h" |
12 #include "third_party/WebKit/public/platform/modules/installedapp/related_applic
ation.mojom.h" | 12 #include "third_party/WebKit/public/platform/modules/installedapp/related_applic
ation.mojom.h" |
13 | 13 |
| 14 namespace service_manager { |
| 15 struct BindSourceInfo; |
| 16 } |
| 17 |
14 namespace content { | 18 namespace content { |
15 | 19 |
16 // The default (no-op) implementation of the InstalledAppProvider Mojo service. | 20 // The default (no-op) implementation of the InstalledAppProvider Mojo service. |
17 // This always returns an empty set of related applications. | 21 // This always returns an empty set of related applications. |
18 class InstalledAppProviderImplDefault | 22 class InstalledAppProviderImplDefault |
19 : public blink::mojom::InstalledAppProvider { | 23 : public blink::mojom::InstalledAppProvider { |
20 public: | 24 public: |
21 InstalledAppProviderImplDefault(); | 25 InstalledAppProviderImplDefault(); |
22 ~InstalledAppProviderImplDefault() override; | 26 ~InstalledAppProviderImplDefault() override; |
23 | 27 |
24 // InstalledAppProvider overrides: | 28 // InstalledAppProvider overrides: |
25 void FilterInstalledApps( | 29 void FilterInstalledApps( |
26 std::vector<blink::mojom::RelatedApplicationPtr> related_apps, | 30 std::vector<blink::mojom::RelatedApplicationPtr> related_apps, |
27 const FilterInstalledAppsCallback& callback) override; | 31 const FilterInstalledAppsCallback& callback) override; |
28 | 32 |
29 static void Create( | 33 static void Create( |
| 34 const service_manager::BindSourceInfo& source_info, |
30 mojo::InterfaceRequest<blink::mojom::InstalledAppProvider> request); | 35 mojo::InterfaceRequest<blink::mojom::InstalledAppProvider> request); |
31 }; | 36 }; |
32 | 37 |
33 } // namespace content | 38 } // namespace content |
34 | 39 |
35 #endif // CONTENT_BROWSER_INSTALLEDAPP_INSTALLED_APP_PROVIDER_IMPL_DEFAULT_H | 40 #endif // CONTENT_BROWSER_INSTALLEDAPP_INSTALLED_APP_PROVIDER_IMPL_DEFAULT_H |
OLD | NEW |