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 BASE_BASE_PATHS_WIN_H_ | 5 #ifndef BASE_BASE_PATHS_WIN_H_ |
6 #define BASE_BASE_PATHS_WIN_H_ | 6 #define BASE_BASE_PATHS_WIN_H_ |
7 | 7 |
| 8 #include "base/base_export.h" |
| 9 |
8 // This file declares windows-specific path keys for the base module. | 10 // This file declares windows-specific path keys for the base module. |
9 // These can be used with the PathService to access various special | 11 // These can be used with the PathService to access various special |
10 // directories and files. | 12 // directories and files. |
11 | 13 |
12 namespace base { | 14 namespace base { |
13 | 15 |
| 16 class FilePath; |
| 17 |
14 enum { | 18 enum { |
15 PATH_WIN_START = 100, | 19 PATH_WIN_START = 100, |
16 | 20 |
17 DIR_WINDOWS, // Windows directory, usually "c:\windows" | 21 DIR_WINDOWS, // Windows directory, usually "c:\windows" |
18 DIR_SYSTEM, // Usually c:\windows\system32" | 22 DIR_SYSTEM, // Usually c:\windows\system32" |
19 // 32-bit 32-bit on 64-bit 64-bit on 64-bit | 23 // 32-bit 32-bit on 64-bit 64-bit on 64-bit |
20 // DIR_PROGRAM_FILES 1 2 1 | 24 // DIR_PROGRAM_FILES 1 2 1 |
21 // DIR_PROGRAM_FILESX86 1 2 2 | 25 // DIR_PROGRAM_FILESX86 1 2 2 |
22 // DIR_PROGRAM_FILES6432 1 1 1 | 26 // DIR_PROGRAM_FILES6432 1 1 1 |
23 // 1 - C:\Program Files 2 - C:\Program Files (x86) | 27 // 1 - C:\Program Files 2 - C:\Program Files (x86) |
(...skipping 18 matching lines...) Expand all Loading... |
42 DIR_COMMON_DESKTOP, // Directory for the common desktop (visible | 46 DIR_COMMON_DESKTOP, // Directory for the common desktop (visible |
43 // on all user's Desktop). | 47 // on all user's Desktop). |
44 DIR_USER_QUICK_LAUNCH, // Directory for the quick launch shortcuts. | 48 DIR_USER_QUICK_LAUNCH, // Directory for the quick launch shortcuts. |
45 DIR_TASKBAR_PINS, // Directory for the shortcuts pinned to taskbar | 49 DIR_TASKBAR_PINS, // Directory for the shortcuts pinned to taskbar |
46 // (Win7-8) via base::win::PinShortcutToTaskbar(). | 50 // (Win7-8) via base::win::PinShortcutToTaskbar(). |
47 DIR_WINDOWS_FONTS, // Usually C:\Windows\Fonts. | 51 DIR_WINDOWS_FONTS, // Usually C:\Windows\Fonts. |
48 | 52 |
49 PATH_WIN_END | 53 PATH_WIN_END |
50 }; | 54 }; |
51 | 55 |
| 56 // These functions are helpers for the implementation of the PathService on |
| 57 // Windows. They're used directly early during startup. http://crbug.com/564398. |
| 58 |
| 59 // Get %LOCALAPPDATA%. This can be used before the PathService is initialized. |
| 60 BASE_EXPORT bool GetLocalAppData(base::FilePath* result); |
| 61 |
| 62 // Get FILE_EXE. This can be used before the PathService is initialized. |
| 63 BASE_EXPORT bool GetFileExe(base::FilePath* result); |
| 64 |
| 65 // Get FILE_MODULE. This can be used before the PathService is initialized. |
| 66 BASE_EXPORT bool GetFileModule(base::FilePath* result); |
| 67 |
| 68 // Get DIR_PROGRAM_FILESX86. This can be used before the PathService is |
| 69 // initialized. |
| 70 BASE_EXPORT bool GetProgramFilesX86(FilePath* result); |
| 71 |
| 72 // Get DIR_PROGRAM_FILES. This can be used before the PathService is |
| 73 // initialized. |
| 74 BASE_EXPORT bool GetProgramFiles(FilePath* result); |
| 75 |
52 } // namespace base | 76 } // namespace base |
53 | 77 |
54 #endif // BASE_BASE_PATHS_WIN_H_ | 78 #endif // BASE_BASE_PATHS_WIN_H_ |
OLD | NEW |