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_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 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
| 10 namespace base { |
| 11 class FilePath; |
| 12 } |
| 13 |
10 // This file declares path keys for the chrome module. These can be used with | 14 // This file declares path keys for the chrome module. These can be used with |
11 // the PathService to access various special directories and files. | 15 // the PathService to access various special directories and files. |
12 | 16 |
13 namespace chrome { | 17 namespace chrome { |
14 | 18 |
15 enum { | 19 enum { |
16 PATH_START = 1000, | 20 PATH_START = 1000, |
17 | 21 |
18 DIR_APP = PATH_START, // Directory where dlls and data reside. | 22 DIR_APP = PATH_START, // Directory where dlls and data reside. |
19 DIR_LOGS, // Directory where logs should be written. | 23 DIR_LOGS, // Directory where logs should be written. |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 DIR_GEN_TEST_DATA, // Directory where generated test data resides. | 120 DIR_GEN_TEST_DATA, // Directory where generated test data resides. |
117 DIR_TEST_DATA, // Directory where unit test data resides. | 121 DIR_TEST_DATA, // Directory where unit test data resides. |
118 DIR_TEST_TOOLS, // Directory where unit test tools reside. | 122 DIR_TEST_TOOLS, // Directory where unit test tools reside. |
119 | 123 |
120 PATH_END | 124 PATH_END |
121 }; | 125 }; |
122 | 126 |
123 // Call once to register the provider for the path keys defined above. | 127 // Call once to register the provider for the path keys defined above. |
124 void RegisterPathProvider(); | 128 void RegisterPathProvider(); |
125 | 129 |
| 130 // Get or set the invalid user data dir that was originally specified. |
| 131 void SetInvalidSpecifiedUserDataDir(const base::FilePath& user_data_dir); |
| 132 const base::FilePath& GetInvalidSpecifiedUserDataDir(); |
| 133 |
126 } // namespace chrome | 134 } // namespace chrome |
127 | 135 |
128 #endif // CHROME_COMMON_CHROME_PATHS_H__ | 136 #endif // CHROME_COMMON_CHROME_PATHS_H__ |
OLD | NEW |