| 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 7c42ca1f9229c790b0e9197485a46d5cbaf9cd82..2899b5ea32c5f5cf763ed9c4d7efa6d2389de800 100644
|
| --- a/chrome/browser/web_applications/web_app.h
|
| +++ b/chrome/browser/web_applications/web_app.h
|
| @@ -177,6 +177,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);
|
|
|
| @@ -197,6 +200,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|.
|
| @@ -246,6 +258,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);
|
|
|