Chromium Code Reviews| 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..99f01d5ef31a3612589c30d16532a155d66a6edb 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 { |
| +// Returns data directory for given web app. The path for the directory is |
|
Mihai Parparita -not on Chrome
2012/02/22 23:24:15
Nit: can this also start with "Returns the user da
sail
2012/02/22 23:38:48
Done.
|
| +// 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, |