| 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 6bca1526949f13978705f0b40d5a02346d03f864..986dcf1a294e37b16d79f4fdb2691427b8ab3bb7 100644
|
| --- a/chrome/browser/web_applications/web_app.h
|
| +++ b/chrome/browser/web_applications/web_app.h
|
| @@ -8,12 +8,15 @@
|
| #include <string>
|
| #include <vector>
|
|
|
| +#include "base/callback.h"
|
| #include "base/files/file_path.h"
|
| #include "base/strings/string16.h"
|
| #include "build/build_config.h"
|
| #include "chrome/browser/shell_integration.h"
|
| #include "chrome/common/web_application_info.h"
|
|
|
| +class Profile;
|
| +
|
| namespace extensions {
|
| class Extension;
|
| }
|
| @@ -31,6 +34,20 @@ enum ShortcutCreationReason {
|
| SHORTCUT_CREATION_AUTOMATED,
|
| };
|
|
|
| +typedef base::Callback<void(const ShellIntegration::ShortcutInfo&)>
|
| + ShortcutInfoCallback;
|
| +
|
| +ShellIntegration::ShortcutInfo ShortcutInfoForExtensionAndProfile(
|
| + const extensions::Extension* app,
|
| + Profile* profile);
|
| +
|
| +// Fetches the icon for |extension| and calls |callback| with shortcut info
|
| +// filled out as by UpdateShortcutInfoForApp.
|
| +void UpdateShortcutInfoAndIconForApp(
|
| + const extensions::Extension* extension,
|
| + Profile* profile,
|
| + const ShortcutInfoCallback& callback);
|
| +
|
| // Gets the user data directory for given web app. The path for the directory is
|
| // based on |extension_id|. If |extension_id| is empty then |url| is used
|
| // to construct a unique ID.
|
|
|