Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(705)

Unified Diff: content/browser/installedapp/installed_app_provider_impl_default.h

Issue 2671683002: getInstalledRelatedApps: Add browser-side Mojo service (stub). (Closed)
Patch Set: Added TODO. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698