| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_INSTALL_STATIC_USER_DATA_DIR_H_ | 5 #ifndef CHROME_INSTALL_STATIC_USER_DATA_DIR_H_ |
| 6 #define CHROME_INSTALL_STATIC_USER_DATA_DIR_H_ | 6 #define CHROME_INSTALL_STATIC_USER_DATA_DIR_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 namespace install_static { | 10 namespace install_static { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 // usage, it should be called only once and cached. GetUserDataDirectory() does | 28 // usage, it should be called only once and cached. GetUserDataDirectory() does |
| 29 // this, and should be preferred. | 29 // this, and should be preferred. |
| 30 bool GetUserDataDirectoryImpl( | 30 bool GetUserDataDirectoryImpl( |
| 31 const std::wstring& user_data_dir_from_command_line, | 31 const std::wstring& user_data_dir_from_command_line, |
| 32 const InstallConstants& mode, | 32 const InstallConstants& mode, |
| 33 std::wstring* result, | 33 std::wstring* result, |
| 34 std::wstring* invalid_supplied_directory); | 34 std::wstring* invalid_supplied_directory); |
| 35 | 35 |
| 36 // Retrieves the user data directory, and any invalid directory specified on the | 36 // Retrieves the user data directory, and any invalid directory specified on the |
| 37 // command line, for reporting an error to the user. These values are cached on | 37 // command line, for reporting an error to the user. These values are cached on |
| 38 // the first call. |invalid_user_data_directory| may be null if not required. | 38 // the first call and this function should therefore be called from a single |
| 39 bool GetUserDataDirectory(std::wstring* user_data_directory, | 39 // module, to ensure consistency. |invalid_user_data_directory| may be null if |
| 40 std::wstring* invalid_user_data_directory); | 40 // not required. |
| 41 bool GetAndCacheUserDataDirectory(const InstallConstants& mode, |
| 42 std::wstring* user_data_directory, |
| 43 std::wstring* invalid_user_data_directory); |
| 41 | 44 |
| 42 } // namespace install_static | 45 } // namespace install_static |
| 43 | 46 |
| 44 #endif // CHROME_INSTALL_STATIC_USER_DATA_DIR_H_ | 47 #endif // CHROME_INSTALL_STATIC_USER_DATA_DIR_H_ |
| OLD | NEW |