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

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

Issue 827013004: Linux: Change ShellIntegration code to use GetXDGDirectory(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comment Created 5 years, 11 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 | « no previous file | 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 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 shell_integration_linux { 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.
26 // Called on the FILE thread. 25 // Called on the FILE thread.
27 bool GetDataWriteLocation(base::Environment* env, base::FilePath* search_path); 26 base::FilePath GetDataWriteLocation(base::Environment* env);
28 27
29 // Get the list of paths to search for application data files, in order of 28 // Get the list of paths to search for application data files, in order of
30 // preference, as specified in the XDG Base Directory Specification: 29 // preference, as specified in the XDG Base Directory Specification:
31 // http://standards.freedesktop.org/basedir-spec/latest/ 30 // http://standards.freedesktop.org/basedir-spec/latest/
32 // Called on the FILE thread. 31 // Called on the FILE thread.
33 std::vector<base::FilePath> GetDataSearchLocations(base::Environment* env); 32 std::vector<base::FilePath> GetDataSearchLocations(base::Environment* env);
34 33
35 // Gets the name for use as the res_class (and possibly res_name) of the 34 // Gets the name for use as the res_class (and possibly res_name) of the
36 // window's WM_CLASS property. This is the program name from argv[0], with the 35 // window's WM_CLASS property. This is the program name from argv[0], with the
37 // first letter capitalized. Equivalent to GDK's gdk_get_program_class(). 36 // first letter capitalized. Equivalent to GDK's gdk_get_program_class().
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 void DeleteDesktopShortcuts(const base::FilePath& profile_path, 131 void DeleteDesktopShortcuts(const base::FilePath& profile_path,
133 const std::string& extension_id); 132 const std::string& extension_id);
134 133
135 // Delete any desktop shortcuts on desktop or in the application menu that have 134 // Delete any desktop shortcuts on desktop or in the application menu that have
136 // for the profile in |profile_path|. 135 // for the profile in |profile_path|.
137 void DeleteAllDesktopShortcuts(const base::FilePath& profile_path); 136 void DeleteAllDesktopShortcuts(const base::FilePath& profile_path);
138 137
139 } // namespace shell_integration_linux 138 } // namespace shell_integration_linux
140 139
141 #endif // CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_ 140 #endif // CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/shell_integration_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698