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 67c839e773f66c8ff032d72f025a325375590d68..4a6367fd7c65ece46c8d4e48f12177802a4f89e2 100644 |
--- a/chrome/browser/web_applications/web_app.h |
+++ b/chrome/browser/web_applications/web_app.h |
@@ -14,8 +14,22 @@ |
#include "chrome/browser/shell_integration.h" |
#include "chrome/common/web_apps.h" |
+class Extension; |
+ |
namespace web_app { |
+// 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. |
+FilePath GetWebAppDataDirectory(const FilePath& profile_path, |
+ const std::string& extension_id, |
+ const GURL& url); |
+ |
+// Gets the user data directory to use for |extension| located inside |
+// |profile_path|. |
+FilePath GetWebAppDataDirectory(const FilePath& profile_path, |
+ const Extension& extension); |
+ |
// Compute a deterministic name based on data in the shortcut_info. |
std::string GenerateApplicationNameFromInfo( |
const ShellIntegration::ShortcutInfo& shortcut_info); |
@@ -43,9 +57,6 @@ void CreateShortcut( |
// Returns true if given url is a valid web app url. |
bool IsValidUrl(const GURL& url); |
-// Returns data dir for web apps for given profile path. |
-FilePath GetDataDir(const FilePath& profile_path); |
- |
#if defined(TOOLKIT_VIEWS) |
// Extracts icons info from web app data. Take only square shaped icons and |
// sort them from smallest to largest. |
@@ -67,9 +78,6 @@ namespace internals { |
bool CheckAndSaveIcon(const FilePath& icon_file, const SkBitmap& image); |
#endif |
-FilePath GetWebAppDataDirectory(const FilePath& root_dir, |
- const ShellIntegration::ShortcutInfo& info); |
- |
// Does the actual job of creating a shortcut (see CreateShortcut() above). |
// This must be called on the file thread. |
void CreateShortcutTask(const FilePath& web_app_path, |