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_INSTALLER_UTIL_PRODUCT_OPERATIONS_H_ | 5 #ifndef CHROME_INSTALLER_UTIL_PRODUCT_OPERATIONS_H_ |
6 #define CHROME_INSTALLER_UTIL_PRODUCT_OPERATIONS_H_ | 6 #define CHROME_INSTALLER_UTIL_PRODUCT_OPERATIONS_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 // when the product is being used. For example "chrome.dll" for Chrome. | 45 // when the product is being used. For example "chrome.dll" for Chrome. |
46 // Before attempting to delete an installation directory during an | 46 // Before attempting to delete an installation directory during an |
47 // uninstallation, the uninstaller will check if any one of a potential set of | 47 // uninstallation, the uninstaller will check if any one of a potential set of |
48 // key files is in use and if they are, abort the delete operation. Only if | 48 // key files is in use and if they are, abort the delete operation. Only if |
49 // none of the key files are in use, can the folder be deleted. Note that | 49 // none of the key files are in use, can the folder be deleted. Note that |
50 // this function does not return a full path to the key file(s), only (a) file | 50 // this function does not return a full path to the key file(s), only (a) file |
51 // name(s). | 51 // name(s). |
52 virtual void AddKeyFiles(const std::set<base::string16>& options, | 52 virtual void AddKeyFiles(const std::set<base::string16>& options, |
53 std::vector<base::FilePath>* key_files) const = 0; | 53 std::vector<base::FilePath>* key_files) const = 0; |
54 | 54 |
55 // Adds to |com_dll_list| the list of COM DLLs that are to be registered | |
56 // and/or unregistered. The list may be empty. | |
57 virtual void AddComDllList( | |
58 const std::set<base::string16>& options, | |
59 std::vector<base::FilePath>* com_dll_list) const = 0; | |
60 | |
61 // Given a command line, appends the set of product-specific flags. These are | 55 // Given a command line, appends the set of product-specific flags. These are |
62 // required for product-specific uninstall commands, but are of use for any | 56 // required for product-specific uninstall commands, but are of use for any |
63 // invocation of setup.exe for the product. | 57 // invocation of setup.exe for the product. |
64 virtual void AppendProductFlags(const std::set<base::string16>& options, | 58 virtual void AppendProductFlags(const std::set<base::string16>& options, |
65 base::CommandLine* cmd_line) const = 0; | 59 base::CommandLine* cmd_line) const = 0; |
66 | 60 |
67 // Given a command line, appends the set of product-specific rename flags. | 61 // Given a command line, appends the set of product-specific rename flags. |
68 virtual void AppendRenameFlags(const std::set<base::string16>& options, | 62 virtual void AppendRenameFlags(const std::set<base::string16>& options, |
69 base::CommandLine* cmd_line) const = 0; | 63 base::CommandLine* cmd_line) const = 0; |
70 | 64 |
(...skipping 21 matching lines...) Expand all Loading... |
92 // sets the wheels in motion or in simple cases does the experiment itself. | 86 // sets the wheels in motion or in simple cases does the experiment itself. |
93 virtual void LaunchUserExperiment(const base::FilePath& setup_path, | 87 virtual void LaunchUserExperiment(const base::FilePath& setup_path, |
94 const std::set<base::string16>& options, | 88 const std::set<base::string16>& options, |
95 InstallStatus status, | 89 InstallStatus status, |
96 bool system_level) const = 0; | 90 bool system_level) const = 0; |
97 }; | 91 }; |
98 | 92 |
99 } // namespace installer | 93 } // namespace installer |
100 | 94 |
101 #endif // CHROME_INSTALLER_UTIL_PRODUCT_OPERATIONS_H_ | 95 #endif // CHROME_INSTALLER_UTIL_PRODUCT_OPERATIONS_H_ |
OLD | NEW |