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

Unified Diff: chrome/browser/android/webapps/webapp_registry.h

Issue 2629573004: Add a chrome://webapks page. (Closed)
Patch Set: Adds an about:webapks page with information about all installed Web APKs on the device Created 3 years, 11 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: chrome/browser/android/webapps/webapp_registry.h
diff --git a/chrome/browser/android/webapps/webapp_registry.h b/chrome/browser/android/webapps/webapp_registry.h
index 275271043115f0d10d5b7d959f4db1000edad6f2..a0326396ca48ddb3d843db45cd954a21e2fae4d2 100644
--- a/chrome/browser/android/webapps/webapp_registry.h
+++ b/chrome/browser/android/webapps/webapp_registry.h
@@ -5,6 +5,8 @@
#ifndef CHROME_BROWSER_ANDROID_WEBAPPS_WEBAPP_REGISTRY_H_
#define CHROME_BROWSER_ANDROID_WEBAPPS_WEBAPP_REGISTRY_H_
+#include <string>
+
#include "base/callback_forward.h"
#include "base/macros.h"
@@ -29,6 +31,12 @@ class WebappRegistry {
virtual void ClearWebappHistoryForUrls(
const base::Callback<bool(const GURL&)>& url_filter);
+ // Fetches a list of the Web APKs installed in the device, including their
+ // package name and version info.
+ virtual void ListWebAPKs(
+ const base::RepeatingCallback<void(std::string, std::string, int, int)>&
+ callback);
+
private:
DISALLOW_COPY_AND_ASSIGN(WebappRegistry);
};

Powered by Google App Engine
This is Rietveld 408576698