Chromium Code Reviews| Index: chrome/installer/util/browser_distribution.h |
| =================================================================== |
| --- chrome/installer/util/browser_distribution.h (revision 67848) |
| +++ chrome/installer/util/browser_distribution.h (working copy) |
| @@ -8,15 +8,18 @@ |
| #define CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ |
| #pragma once |
| +#if defined(OS_WIN) |
| +#include <windows.h> |
| +#endif |
| + |
| +#include <string> |
| +#include <vector> |
|
robertshield
2010/12/01 21:40:54
why include vector?
tommi (sloooow) - chröme
2010/12/01 22:07:15
Removed. I started out supporting a vector of key
|
| + |
| #include "base/basictypes.h" |
| #include "base/file_path.h" |
| #include "chrome/installer/util/util_constants.h" |
| #include "chrome/installer/util/version.h" |
| -#if defined(OS_WIN) |
| -#include <windows.h> |
| -#endif |
| - |
| namespace installer { |
| class Product; |
| } |
| @@ -103,6 +106,16 @@ |
| virtual void InactiveUserToastExperiment(int flavor, |
| const installer::Product& installation); |
| + // A key-file is a file such as a DLL on Windows that is expected to be |
| + // in use when the product is being used. For example "chrome.dll" for |
| + // Chrome. Before attempting to delete an installation directory during |
| + // an uninstallation, the uninstaller will check if any one of a potential |
| + // set of key files is in use and if they are, abort the delete operation. |
| + // Only if none of the key files are in use, can the folder be deleted. |
| + // Note that this function does not return a full path to the key file, but |
| + // only a name that's relative to the installation folder. |
|
robertshield
2010/12/01 21:40:54
xnay on the stallationinnay olderfay.
tommi (sloooow) - chröme
2010/12/01 22:07:15
Done.
|
| + virtual FilePath::StringType GetKeyFile(); |
| + |
| protected: |
| BrowserDistribution() : type_(CHROME_BROWSER) {} |