| 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 986dcf1a294e37b16d79f4fdb2691427b8ab3bb7..79ea5a550fe1b30379f19dd3a2ffd1d8247c1c39 100644
|
| --- a/chrome/browser/web_applications/web_app.h
|
| +++ b/chrome/browser/web_applications/web_app.h
|
| @@ -17,6 +17,10 @@
|
|
|
| class Profile;
|
|
|
| +namespace content {
|
| +class WebContents;
|
| +}
|
| +
|
| namespace extensions {
|
| class Extension;
|
| }
|
| @@ -37,6 +41,17 @@ enum ShortcutCreationReason {
|
| typedef base::Callback<void(const ShellIntegration::ShortcutInfo&)>
|
| ShortcutInfoCallback;
|
|
|
| +// Extracts shortcut info of the given WebContents.
|
| +void GetShortcutInfoForTab(content::WebContents* web_contents,
|
| + ShellIntegration::ShortcutInfo* info);
|
| +
|
| +// Updates web app shortcut of the WebContents. This function checks and
|
| +// updates web app icon and shortcuts if needed. For icon, the check is based
|
| +// on MD5 hash of icon image. For shortcuts, it checks the desktop, start menu
|
| +// and quick launch (as well as pinned shortcut) for shortcut and only
|
| +// updates (recreates) them if they exits.
|
| +void UpdateShortcutForTabContents(content::WebContents* web_contents);
|
| +
|
| ShellIntegration::ShortcutInfo ShortcutInfoForExtensionAndProfile(
|
| const extensions::Extension* app,
|
| Profile* profile);
|
|
|