OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_INSTALLEDAPP_INSTALLED_APP_PROVIDER_IMPL_DEFAULT_H |
| 6 #define CONTENT_BROWSER_INSTALLEDAPP_INSTALLED_APP_PROVIDER_IMPL_DEFAULT_H |
| 7 |
| 8 #include <string> |
| 9 #include <vector> |
| 10 |
| 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" |
| 13 |
| 14 namespace content { |
| 15 |
| 16 // The default (no-op) implementation of the InstalledAppProvider Mojo service. |
| 17 // This always returns an empty set of related applications. |
| 18 class InstalledAppProviderImplDefault |
| 19 : public blink::mojom::InstalledAppProvider { |
| 20 public: |
| 21 InstalledAppProviderImplDefault(); |
| 22 ~InstalledAppProviderImplDefault() override; |
| 23 |
| 24 // InstalledAppProvider overrides: |
| 25 void FilterInstalledApps( |
| 26 std::vector<blink::mojom::RelatedApplicationPtr> related_apps, |
| 27 const FilterInstalledAppsCallback& callback) override; |
| 28 |
| 29 static void Create( |
| 30 mojo::InterfaceRequest<blink::mojom::InstalledAppProvider> request); |
| 31 }; |
| 32 |
| 33 } // namespace content |
| 34 |
| 35 #endif // CONTENT_BROWSER_INSTALLEDAPP_INSTALLED_APP_PROVIDER_IMPL_DEFAULT_H |
OLD | NEW |