OLD | NEW |
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/web_applications/web_app.h" | 12 #include "chrome/browser/web_applications/web_app.h" |
13 #include "url/gurl.h" | 13 #include "url/gurl.h" |
14 | 14 |
15 namespace base { | 15 namespace base { |
16 class CommandLine; | 16 class CommandLine; |
17 class Environment; | 17 class Environment; |
18 } | 18 } |
19 | 19 |
20 namespace ShellIntegrationLinux { | 20 namespace shell_integration_linux { |
21 | 21 |
22 // 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 |
23 // in the XDG Base Directory Specification: | 23 // in the XDG Base Directory Specification: |
24 // http://standards.freedesktop.org/basedir-spec/latest/ | 24 // http://standards.freedesktop.org/basedir-spec/latest/ |
25 // 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. |
26 // Called on the FILE thread. | 26 // Called on the FILE thread. |
27 bool GetDataWriteLocation(base::Environment* env, base::FilePath* search_path); | 27 bool GetDataWriteLocation(base::Environment* env, base::FilePath* search_path); |
28 | 28 |
29 // Get the list of paths to search for application data files, in order of | 29 // Get the list of paths to search for application data files, in order of |
30 // preference, as specified in the XDG Base Directory Specification: | 30 // preference, as specified in the XDG Base Directory Specification: |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 | 129 |
130 // Delete any desktop shortcuts on desktop or in the application menu that have | 130 // Delete any desktop shortcuts on desktop or in the application menu that have |
131 // been added for the extension with |extension_id| in |profile_path|. | 131 // been added for the extension with |extension_id| in |profile_path|. |
132 void DeleteDesktopShortcuts(const base::FilePath& profile_path, | 132 void DeleteDesktopShortcuts(const base::FilePath& profile_path, |
133 const std::string& extension_id); | 133 const std::string& extension_id); |
134 | 134 |
135 // Delete any desktop shortcuts on desktop or in the application menu that have | 135 // Delete any desktop shortcuts on desktop or in the application menu that have |
136 // for the profile in |profile_path|. | 136 // for the profile in |profile_path|. |
137 void DeleteAllDesktopShortcuts(const base::FilePath& profile_path); | 137 void DeleteAllDesktopShortcuts(const base::FilePath& profile_path); |
138 | 138 |
139 } // namespace ShellIntegrationLinux | 139 } // namespace shell_integration_linux |
140 | 140 |
141 #endif // CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_ | 141 #endif // CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_ |
OLD | NEW |