Index: content/browser/installedapp/installed_app_provider_impl_default.h |
diff --git a/content/browser/installedapp/installed_app_provider_impl_default.h b/content/browser/installedapp/installed_app_provider_impl_default.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..78c1e0d81b361776d93392b3dd3404ebd3f4ca6f |
--- /dev/null |
+++ b/content/browser/installedapp/installed_app_provider_impl_default.h |
@@ -0,0 +1,35 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_BROWSER_INSTALLEDAPP_INSTALLED_APP_PROVIDER_IMPL_DEFAULT_H |
+#define CONTENT_BROWSER_INSTALLEDAPP_INSTALLED_APP_PROVIDER_IMPL_DEFAULT_H |
+ |
+#include <string> |
+#include <vector> |
+ |
+#include "third_party/WebKit/public/platform/modules/installedapp/installed_app_provider.mojom.h" |
+#include "third_party/WebKit/public/platform/modules/installedapp/related_application.mojom.h" |
+ |
+namespace content { |
+ |
+// The default (no-op) implementation of the InstalledAppProvider Mojo service. |
+// This always returns an empty set of related applications. |
+class InstalledAppProviderImplDefault |
+ : public blink::mojom::InstalledAppProvider { |
+ public: |
+ InstalledAppProviderImplDefault(); |
+ ~InstalledAppProviderImplDefault() override; |
+ |
+ // InstalledAppProvider overrides: |
+ void FilterInstalledApps( |
+ std::vector<blink::mojom::RelatedApplicationPtr> related_apps, |
+ const FilterInstalledAppsCallback& callback) override; |
+ |
+ static void Create( |
+ mojo::InterfaceRequest<blink::mojom::InstalledAppProvider> request); |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_BROWSER_INSTALLEDAPP_INSTALLED_APP_PROVIDER_IMPL_DEFAULT_H |