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

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

Issue 196413016: Move CommandLine to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "chrome/browser/shell_integration.h" 12 #include "chrome/browser/shell_integration.h"
13 #include "url/gurl.h" 13 #include "url/gurl.h"
14 14
15 namespace base { 15 namespace base {
16 class CommandLine;
16 class Environment; 17 class Environment;
17 } 18 }
18 19
19 namespace ShellIntegrationLinux { 20 namespace ShellIntegrationLinux {
20 21
21 // Get the path to write user-specific application data files to, as specified 22 // Get the path to write user-specific application data files to, as specified
22 // in the XDG Base Directory Specification: 23 // in the XDG Base Directory Specification:
23 // http://standards.freedesktop.org/basedir-spec/latest/ 24 // http://standards.freedesktop.org/basedir-spec/latest/
24 // Returns true on success, or false if no such path could be found. 25 // Returns true on success, or false if no such path could be found.
25 // Called on the FILE thread. 26 // Called on the FILE thread.
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 const GURL& url, 91 const GURL& url,
91 const std::string& extension_id, 92 const std::string& extension_id,
92 const base::string16& title, 93 const base::string16& title,
93 const std::string& icon_name, 94 const std::string& icon_name,
94 const base::FilePath& profile_path, 95 const base::FilePath& profile_path,
95 bool no_display); 96 bool no_display);
96 97
97 // Returns contents for .desktop file that executes command_line. This is a more 98 // Returns contents for .desktop file that executes command_line. This is a more
98 // general form of GetDesktopFileContents. If |no_display| is true, the shortcut 99 // general form of GetDesktopFileContents. If |no_display| is true, the shortcut
99 // will not be visible to the user in menus. 100 // will not be visible to the user in menus.
100 std::string GetDesktopFileContentsForCommand(const CommandLine& command_line, 101 std::string GetDesktopFileContentsForCommand(
101 const std::string& app_name, 102 const base::CommandLine& command_line,
102 const GURL& url, 103 const std::string& app_name,
103 const base::string16& title, 104 const GURL& url,
104 const std::string& icon_name, 105 const base::string16& title,
105 bool no_display); 106 const std::string& icon_name,
107 bool no_display);
106 108
107 // Returns contents for .directory file named |title| with icon |icon_name|. If 109 // Returns contents for .directory file named |title| with icon |icon_name|. If
108 // |icon_name| is empty, will use the Chrome icon. 110 // |icon_name| is empty, will use the Chrome icon.
109 std::string GetDirectoryFileContents(const base::string16& title, 111 std::string GetDirectoryFileContents(const base::string16& title,
110 const std::string& icon_name); 112 const std::string& icon_name);
111 113
112 // Create shortcuts on the desktop or in the application menu (as specified by 114 // Create shortcuts on the desktop or in the application menu (as specified by
113 // |shortcut_info|), for the web page or extension in |shortcut_info|. 115 // |shortcut_info|), for the web page or extension in |shortcut_info|.
114 // For extensions, duplicate shortcuts are avoided, so if a requested shortcut 116 // For extensions, duplicate shortcuts are avoided, so if a requested shortcut
115 // already exists it is deleted first. 117 // already exists it is deleted first.
(...skipping 12 matching lines...) Expand all
128 void DeleteDesktopShortcuts(const base::FilePath& profile_path, 130 void DeleteDesktopShortcuts(const base::FilePath& profile_path,
129 const std::string& extension_id); 131 const std::string& extension_id);
130 132
131 // Delete any desktop shortcuts on desktop or in the application menu that have 133 // Delete any desktop shortcuts on desktop or in the application menu that have
132 // for the profile in |profile_path|. 134 // for the profile in |profile_path|.
133 void DeleteAllDesktopShortcuts(const base::FilePath& profile_path); 135 void DeleteAllDesktopShortcuts(const base::FilePath& profile_path);
134 136
135 } // namespace ShellIntegrationLinux 137 } // namespace ShellIntegrationLinux
136 138
137 #endif // CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_ 139 #endif // CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_
OLDNEW
« no previous file with comments | « chrome/browser/shell_integration.h ('k') | chrome/browser/sync/profile_sync_components_factory_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698