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

Side by Side Diff: chrome/browser/shell_integration_linux.h

Issue 10097004: Moved Linux specific shell integration declarations into own header. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 8 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/shell_integration.h ('k') | chrome/browser/shell_integration_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_ 5 #ifndef CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_
6 #define CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_ 6 #define CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/file_path.h" 12 #include "base/file_path.h"
13 #include "chrome/browser/shell_integration.h" 13 #include "chrome/browser/shell_integration.h"
14 #include "googleurl/src/gurl.h"
15
16 namespace base {
17 class Environment;
18 }
14 19
15 namespace ShellIntegrationLinux { 20 namespace ShellIntegrationLinux {
16 21
22 // Returns filename of the desktop shortcut used to launch the browser.
23 std::string GetDesktopName(base::Environment* env);
24
25 bool GetDesktopShortcutTemplate(base::Environment* env,
26 std::string* output);
27
28 // Returns filename for .desktop file based on |url|, sanitized for security.
29 FilePath GetDesktopShortcutFilename(const GURL& url);
30
31 // Returns contents for .desktop file based on |template_contents|, |url|
32 // and |title|. The |template_contents| should be contents of .desktop file
33 // used to launch Chrome.
34 std::string GetDesktopFileContents(const std::string& template_contents,
35 const std::string& app_name,
36 const GURL& url,
37 const std::string& extension_id,
38 const bool is_platform_app,
39 const FilePath& web_app_path,
40 const FilePath& extension_path,
41 const string16& title,
42 const std::string& icon_name);
43
44 bool CreateDesktopShortcut(const ShellIntegration::ShortcutInfo& shortcut_info,
45 const std::string& shortcut_template);
46
17 bool CreateDesktopShortcutForChromeApp( 47 bool CreateDesktopShortcutForChromeApp(
18 const ShellIntegration::ShortcutInfo& shortcut_info, 48 const ShellIntegration::ShortcutInfo& shortcut_info,
19 const FilePath& web_app_path, 49 const FilePath& web_app_path,
20 const std::string& shortcut_template); 50 const std::string& shortcut_template);
21 51
22 } // namespace ShellIntegrationLinux 52 } // namespace ShellIntegrationLinux
23 53
24 #endif // CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_ 54 #endif // CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_
OLDNEW
« no previous file with comments | « chrome/browser/shell_integration.h ('k') | chrome/browser/shell_integration_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698