| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CHROMEOS_CHROMEOS_PATHS_H_ | 5 #ifndef CHROMEOS_CHROMEOS_PATHS_H_ |
| 6 #define CHROMEOS_CHROMEOS_PATHS_H_ | 6 #define CHROMEOS_CHROMEOS_PATHS_H_ |
| 7 | 7 |
| 8 #include "chromeos/chromeos_export.h" | 8 #include "chromeos/chromeos_export.h" |
| 9 | 9 |
| 10 namespace base { | |
| 11 class FilePath; | |
| 12 } | |
| 13 | |
| 14 // This file declares path keys for the chromeos module. These can be used with | 10 // This file declares path keys for the chromeos module. These can be used with |
| 15 // the PathService to access various special directories and files. | 11 // the PathService to access various special directories and files. |
| 16 | 12 |
| 17 namespace chromeos { | 13 namespace chromeos { |
| 18 | 14 |
| 19 enum { | 15 enum { |
| 20 PATH_START = 7000, | 16 PATH_START = 7000, |
| 21 | 17 |
| 22 FILE_DEFAULT_APP_ORDER, // Full path to the json file that defines the | 18 FILE_DEFAULT_APP_ORDER, // Full path to the json file that defines the |
| 23 // default app order. | 19 // default app order. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 37 // account. | 33 // account. |
| 38 DIR_DEVICE_LOCAL_ACCOUNT_EXTERNAL_DATA, // Directory where external data | 34 DIR_DEVICE_LOCAL_ACCOUNT_EXTERNAL_DATA, // Directory where external data |
| 39 // referenced by policies is cached | 35 // referenced by policies is cached |
| 40 // for device-local accounts. | 36 // for device-local accounts. |
| 41 PATH_END | 37 PATH_END |
| 42 }; | 38 }; |
| 43 | 39 |
| 44 // Call once to register the provider for the path keys defined above. | 40 // Call once to register the provider for the path keys defined above. |
| 45 CHROMEOS_EXPORT void RegisterPathProvider(); | 41 CHROMEOS_EXPORT void RegisterPathProvider(); |
| 46 | 42 |
| 47 // Overrides some of the paths listed above so that those files can be used | |
| 48 // when not running on ChromeOS. The stubs files will be relative to | |
| 49 // |stubs_dir|. It is not valid to call this when running on ChromeOS. | |
| 50 CHROMEOS_EXPORT void RegisterStubPathOverrides(const base::FilePath& stubs_dir); | |
| 51 | |
| 52 } // namespace chromeos | 43 } // namespace chromeos |
| 53 | 44 |
| 54 #endif // CHROMEOS_CHROMEOS_PATHS_H_ | 45 #endif // CHROMEOS_CHROMEOS_PATHS_H_ |
| OLD | NEW |