| Index: chrome/browser/shell_integration_linux.h
|
| diff --git a/chrome/browser/shell_integration_linux.h b/chrome/browser/shell_integration_linux.h
|
| index 2e839a5c47e2d34e5d975655e221032fac239d1c..c3a3a59de7a7568d66ee9b4f69e92e0e4de2d634 100644
|
| --- a/chrome/browser/shell_integration_linux.h
|
| +++ b/chrome/browser/shell_integration_linux.h
|
| @@ -11,9 +11,39 @@
|
| #include "base/basictypes.h"
|
| #include "base/file_path.h"
|
| #include "chrome/browser/shell_integration.h"
|
| +#include "googleurl/src/gurl.h"
|
| +
|
| +namespace base {
|
| +class Environment;
|
| +}
|
|
|
| namespace ShellIntegrationLinux {
|
|
|
| +// Returns filename of the desktop shortcut used to launch the browser.
|
| +std::string GetDesktopName(base::Environment* env);
|
| +
|
| +bool GetDesktopShortcutTemplate(base::Environment* env,
|
| + std::string* output);
|
| +
|
| +// Returns filename for .desktop file based on |url|, sanitized for security.
|
| +FilePath GetDesktopShortcutFilename(const GURL& url);
|
| +
|
| +// Returns contents for .desktop file based on |template_contents|, |url|
|
| +// and |title|. The |template_contents| should be contents of .desktop file
|
| +// used to launch Chrome.
|
| +std::string GetDesktopFileContents(const std::string& template_contents,
|
| + const std::string& app_name,
|
| + const GURL& url,
|
| + const std::string& extension_id,
|
| + const bool is_platform_app,
|
| + const FilePath& web_app_path,
|
| + const FilePath& extension_path,
|
| + const string16& title,
|
| + const std::string& icon_name);
|
| +
|
| +bool CreateDesktopShortcut(const ShellIntegration::ShortcutInfo& shortcut_info,
|
| + const std::string& shortcut_template);
|
| +
|
| bool CreateDesktopShortcutForChromeApp(
|
| const ShellIntegration::ShortcutInfo& shortcut_info,
|
| const FilePath& web_app_path,
|
|
|