Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // This file defines a utility function to get the full path of a module. | |
| 6 | |
| 7 #ifndef CHROME_INSTALLER_UTIL_MODULE_UTIL_WIN_H_ | |
| 8 #define CHROME_INSTALLER_UTIL_MODULE_UTIL_WIN_H_ | |
| 9 | |
| 10 #include "base/files/file_path.h" | |
| 11 #include "base/strings/string16.h" | |
| 12 #include "base/strings/string_piece.h" | |
| 13 | |
| 14 namespace installer { | |
| 15 | |
| 16 // Returns the full path to a module named |module_name|, or an empty path if | |
| 17 // the current module doesn't have a version resource. The searched module must | |
|
grt (UTC plus 2)
2015/10/30 17:45:37
still not quite right: it's an empty path if there
fdoray
2015/10/30 18:25:25
Yes, you're right. I hope I got it right this time
| |
| 18 // be in the same directory as the current executable, or in a version | |
| 19 // subdirectory. On output, if the module is in a version subdirectory, | |
| 20 // |version| is populated with the version of the module. | |
| 21 base::FilePath GetModulePath(const base::StringPiece16& module_name, | |
| 22 base::string16* version); | |
| 23 | |
| 24 } // namespace installer | |
| 25 | |
| 26 #endif // CHROME_INSTALLER_UTIL_MODULE_UTIL_WIN_H_ | |
| OLD | NEW |