OLD | NEW |
1 // Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_COMMON_CHROME_PATHS_H__ | 5 #ifndef CHROME_COMMON_CHROME_PATHS_H__ |
6 #define CHROME_COMMON_CHROME_PATHS_H__ | 6 #define CHROME_COMMON_CHROME_PATHS_H__ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 | 10 |
11 // This file declares path keys for the chrome module. These can be used with | 11 // This file declares path keys for the chrome module. These can be used with |
(...skipping 16 matching lines...) Expand all Loading... |
28 DIR_INSPECTOR, // Directory where web inspector is located. | 28 DIR_INSPECTOR, // Directory where web inspector is located. |
29 DIR_APP_DICTIONARIES, // Directory where the global dictionaries are. | 29 DIR_APP_DICTIONARIES, // Directory where the global dictionaries are. |
30 DIR_USER_DOCUMENTS, // Directory for a user's "My Documents". | 30 DIR_USER_DOCUMENTS, // Directory for a user's "My Documents". |
31 DIR_DEFAULT_DOWNLOADS_SAFE, // Directory for a user's | 31 DIR_DEFAULT_DOWNLOADS_SAFE, // Directory for a user's |
32 // "My Documents/Downloads". | 32 // "My Documents/Downloads". |
33 DIR_DEFAULT_DOWNLOADS, // Directory for a user's downloads. | 33 DIR_DEFAULT_DOWNLOADS, // Directory for a user's downloads. |
34 DIR_USER_DATA_TEMP, // A temp directory within DIR_USER_DATA. Use | 34 DIR_USER_DATA_TEMP, // A temp directory within DIR_USER_DATA. Use |
35 // this when a temporary file or directory will | 35 // this when a temporary file or directory will |
36 // be moved into the profile, to avoid issues | 36 // be moved into the profile, to avoid issues |
37 // moving across volumes. See crbug.com/13044 . | 37 // moving across volumes. See crbug.com/13044 . |
| 38 // Getting this path does not create it. Users |
| 39 // should check that the path exists before |
| 40 // using it. |
38 DIR_INTERNAL_PLUGINS, // Directory where internal plugins reside. | 41 DIR_INTERNAL_PLUGINS, // Directory where internal plugins reside. |
39 #if !defined(OS_MACOSX) && defined(OS_POSIX) | 42 #if !defined(OS_MACOSX) && defined(OS_POSIX) |
40 DIR_POLICY_FILES, // Directory for system-wide read-only | 43 DIR_POLICY_FILES, // Directory for system-wide read-only |
41 // policy files that allow sys-admins | 44 // policy files that allow sys-admins |
42 // to set policies for chrome. This directory | 45 // to set policies for chrome. This directory |
43 // contains subdirectories. | 46 // contains subdirectories. |
44 #endif | 47 #endif |
45 #if defined(OS_MACOSX) | 48 #if defined(OS_MACOSX) |
46 DIR_MANAGED_PREFS, // Directory that stores the managed prefs plist | 49 DIR_MANAGED_PREFS, // Directory that stores the managed prefs plist |
47 // files for the current user. | 50 // files for the current user. |
(...skipping 29 matching lines...) Expand all Loading... |
77 | 80 |
78 PATH_END | 81 PATH_END |
79 }; | 82 }; |
80 | 83 |
81 // Call once to register the provider for the path keys defined above. | 84 // Call once to register the provider for the path keys defined above. |
82 void RegisterPathProvider(); | 85 void RegisterPathProvider(); |
83 | 86 |
84 } // namespace chrome | 87 } // namespace chrome |
85 | 88 |
86 #endif // CHROME_COMMON_CHROME_PATHS_H__ | 89 #endif // CHROME_COMMON_CHROME_PATHS_H__ |
OLD | NEW |