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_INSTALLATION_VALIDATOR_H_ | 5 #ifndef CHROME_INSTALLER_UTIL_INSTALLATION_VALIDATOR_H_ |
6 #define CHROME_INSTALLER_UTIL_INSTALLATION_VALIDATOR_H_ | 6 #define CHROME_INSTALLER_UTIL_INSTALLATION_VALIDATOR_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 rules(rules_in) { | 179 rules(rules_in) { |
180 } | 180 } |
181 | 181 |
182 const InstallationState& machine_state; | 182 const InstallationState& machine_state; |
183 bool system_install; | 183 bool system_install; |
184 BrowserDistribution* dist; | 184 BrowserDistribution* dist; |
185 const ProductState& state; | 185 const ProductState& state; |
186 const ProductRules& rules; | 186 const ProductRules& rules; |
187 }; | 187 }; |
188 | 188 |
| 189 static void ValidateInstallAppCommand(const ProductContext& ctx, |
| 190 const AppCommand& command, |
| 191 bool* is_valid); |
189 static void ValidateOnOsUpgradeCommand(const ProductContext& ctx, | 192 static void ValidateOnOsUpgradeCommand(const ProductContext& ctx, |
190 const AppCommand& command, | 193 const AppCommand& command, |
191 bool* is_valid); | 194 bool* is_valid); |
192 static void ValidateInstallAppCommand(const ProductContext& ctx, | 195 static void ValidateQueryEULAAcceptanceCommand(const ProductContext& ctx, |
193 const AppCommand& command, | 196 const AppCommand& command, |
194 bool* is_valid); | 197 bool* is_valid); |
195 static void ValidateQuickEnableCfCommand(const ProductContext& ctx, | 198 static void ValidateQuickEnableCfCommand(const ProductContext& ctx, |
196 const AppCommand& command, | 199 const AppCommand& command, |
197 bool* is_valid); | 200 bool* is_valid); |
198 static void ValidateQuickEnableApplicationHostCommand( | 201 static void ValidateQuickEnableApplicationHostCommand( |
199 const ProductContext& ctx, | 202 const ProductContext& ctx, |
200 const AppCommand& command, | 203 const AppCommand& command, |
201 bool* is_valid); | 204 bool* is_valid); |
202 | 205 |
203 static void ValidateAppCommandExpectations( | 206 static void ValidateAppCommandExpectations( |
204 const ProductContext& ctx, | 207 const ProductContext& ctx, |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 // A collection of all valid installation types. | 245 // A collection of all valid installation types. |
243 static const InstallationType kInstallationTypes[]; | 246 static const InstallationType kInstallationTypes[]; |
244 | 247 |
245 private: | 248 private: |
246 DISALLOW_IMPLICIT_CONSTRUCTORS(InstallationValidator); | 249 DISALLOW_IMPLICIT_CONSTRUCTORS(InstallationValidator); |
247 }; | 250 }; |
248 | 251 |
249 } // namespace installer | 252 } // namespace installer |
250 | 253 |
251 #endif // CHROME_INSTALLER_UTIL_INSTALLATION_VALIDATOR_H_ | 254 #endif // CHROME_INSTALLER_UTIL_INSTALLATION_VALIDATOR_H_ |
OLD | NEW |