Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4464)

Unified Diff: chrome/browser/web_applications/web_app.h

Issue 9346013: Publish app shortcuts on Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win build Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/shell_integration_win.cc ('k') | chrome/browser/web_applications/web_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ae7141694c30fd07a2e8f3aa1d154939833acb67..67c839e773f66c8ff032d72f025a325375590d68 100644
--- a/chrome/browser/web_applications/web_app.h
+++ b/chrome/browser/web_applications/web_app.h
@@ -64,13 +64,22 @@ std::string GetWMClassFromAppName(std::string app_name);
namespace internals {
#if defined(OS_WIN)
-FilePath GetSanitizedFileName(const string16& name);
-
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,
+ const FilePath& profile_path,
+ const ShellIntegration::ShortcutInfo& shortcut_info);
+
+// Sanitizes |name| and returns a version of it that is safe to use as an
+// on-disk file name .
+FilePath GetSanitizedFileName(const string16& name);
+
} // namespace internals
} // namespace web_app
« no previous file with comments | « chrome/browser/shell_integration_win.cc ('k') | chrome/browser/web_applications/web_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698