Index: chrome/browser/web_applications/web_app.h |
diff --git a/chrome/browser/web_applications/web_app.h b/chrome/browser/web_applications/web_app.h |
index 9b2cef7bf83a67add897669b8d0d44797ca4c9b3..eb87531e1978a769b0f1f19a2498c501477912f1 100644 |
--- a/chrome/browser/web_applications/web_app.h |
+++ b/chrome/browser/web_applications/web_app.h |
@@ -172,6 +172,9 @@ void UpdateAllShortcuts(const base::string16& old_app_title, |
Profile* profile, |
const extensions::Extension* app); |
+// Updates shortcuts for all apps in this profile. |
+void UpdateShortcutsForAllApps(Profile* profile); |
+ |
// Returns true if given url is a valid web app url. |
bool IsValidUrl(const GURL& url); |
@@ -191,6 +194,15 @@ std::string GetWMClassFromAppName(std::string app_name); |
namespace internals { |
+typedef base::Callback<void(Profile*, const extensions::Extension*)> |
+ ShortcutOperationCallback; |
+ |
+// Resolves |profile_path| and |app_id| into Profile* and Extension*. |
+void CallForProfileAndAppId( |
+ const base::FilePath& profile_path, |
+ const std::string app_id, |
+ const ShortcutOperationCallback& callback); |
+ |
#if defined(OS_WIN) |
// Returns the Windows user-level shortcut paths that are specified in |
// |creation_locations|. |
@@ -238,6 +250,10 @@ void UpdatePlatformShortcuts( |
// This is executed on the FILE thread. |
void DeleteAllShortcutsForProfile(const base::FilePath& profile_path); |
+// Checks all shortcuts for a profile and deletes/updates them as necessary. |
+void UpdateShortcutsForAllAppsForProfile(const base::FilePath& profile_path, |
+ const std::set<std::string>& app_ids); |
+ |
// Sanitizes |name| and returns a version of it that is safe to use as an |
// on-disk file name . |
base::FilePath GetSanitizedFileName(const base::string16& name); |