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/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "chrome/browser/web_applications/web_app.h" | 11 #include "chrome/browser/web_applications/web_app.h" |
12 #include "chrome/common/features.h" | 12 #include "chrome/common/features.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 // Called on the FILE thread. | |
26 base::FilePath GetDataWriteLocation(base::Environment* env); | 25 base::FilePath GetDataWriteLocation(base::Environment* env); |
27 | 26 |
28 // Get the list of paths to search for application data files, in order of | 27 // Get the list of paths to search for application data files, in order of |
29 // preference, as specified in the XDG Base Directory Specification: | 28 // preference, as specified in the XDG Base Directory Specification: |
30 // http://standards.freedesktop.org/basedir-spec/latest/ | 29 // http://standards.freedesktop.org/basedir-spec/latest/ |
31 // Called on the FILE thread. | 30 // Called on the FILE thread. |
32 std::vector<base::FilePath> GetDataSearchLocations(base::Environment* env); | 31 std::vector<base::FilePath> GetDataSearchLocations(base::Environment* env); |
33 | 32 |
34 // Gets the name for use as the res_name of the window's WM_CLASS property. | 33 // Gets the name for use as the res_name of the window's WM_CLASS property. |
35 std::string GetProgramClassName(); | 34 std::string GetProgramClassName(); |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 std::string GetProgramClassName(const base::CommandLine& command_line, | 144 std::string GetProgramClassName(const base::CommandLine& command_line, |
146 const std::string& desktop_file_name); | 145 const std::string& desktop_file_name); |
147 std::string GetProgramClassClass(const base::CommandLine& command_line, | 146 std::string GetProgramClassClass(const base::CommandLine& command_line, |
148 const std::string& desktop_file_name); | 147 const std::string& desktop_file_name); |
149 | 148 |
150 } // namespace internal | 149 } // namespace internal |
151 | 150 |
152 } // namespace shell_integration_linux | 151 } // namespace shell_integration_linux |
153 | 152 |
154 #endif // CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_ | 153 #endif // CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_ |
OLD | NEW |