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..f4351f1112f378c35f2fc99b7f55b7d34287ebe8 100644 |
--- a/chrome/browser/web_applications/web_app.h |
+++ b/chrome/browser/web_applications/web_app.h |
@@ -99,6 +99,11 @@ enum ShortcutCreationReason { |
SHORTCUT_CREATION_AUTOMATED, |
}; |
+// Called by GetInfoForApp after fetching the ShortcutInfo and FileHandlersInfo. |
+typedef base::Callback<void(const web_app::ShortcutInfo&, |
+ const extensions::FileHandlersInfo&)> InfoCallback; |
+ |
+// Called by UpdateShortcutInfoAndIconForApp after loading the icon. |
typedef base::Callback<void(const web_app::ShortcutInfo&)> |
ShortcutInfoCallback; |
@@ -197,6 +202,11 @@ std::string GetWMClassFromAppName(std::string app_name); |
namespace internals { |
+// Loads relevant info structs for the app and calls |callback|. |
+void GetInfoForApp(const extensions::Extension* extension, |
+ Profile* profile, |
+ const InfoCallback& callback); |
+ |
#if defined(OS_WIN) |
// Returns the Windows user-level shortcut paths that are specified in |
// |creation_locations|. |