Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: chrome/installer/util/installation_validator.h

Issue 612093007: Remove kCmdInstallExtension and kCmdInstallApp from Installer code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 185
186 // Helper to validate the values of bool elements in AppCommand, and to output 186 // Helper to validate the values of bool elements in AppCommand, and to output
187 // error messages. |flag_expect| is a bit mask specifying the expected 187 // error messages. |flag_expect| is a bit mask specifying the expected
188 // presence/absence of bool variables. 188 // presence/absence of bool variables.
189 static void ValidateAppCommandFlags( 189 static void ValidateAppCommandFlags(
190 const ProductContext& ctx, 190 const ProductContext& ctx,
191 const AppCommand& app_cmd, 191 const AppCommand& app_cmd,
192 const std::set<base::string16>& flags_expected, 192 const std::set<base::string16>& flags_expected,
193 const base::string16& name, 193 const base::string16& name,
194 bool* is_valid); 194 bool* is_valid);
195 static void ValidateInstallCommand(const ProductContext& ctx,
196 const AppCommand& app_cmd,
197 const wchar_t* expected_command,
198 const wchar_t* expected_app_name,
199 const char* expected_switch,
200 bool* is_valid);
201 static void ValidateInstallAppCommand(const ProductContext& ctx,
202 const AppCommand& app_cmd,
203 bool* is_valid);
204 static void ValidateInstallExtensionCommand(const ProductContext& ctx,
205 const AppCommand& app_cmd,
206 bool* is_valid);
207 static void ValidateOnOsUpgradeCommand(const ProductContext& ctx, 195 static void ValidateOnOsUpgradeCommand(const ProductContext& ctx,
208 const AppCommand& app_cmd, 196 const AppCommand& app_cmd,
209 bool* is_valid); 197 bool* is_valid);
210 static void ValidateQueryEULAAcceptanceCommand(const ProductContext& ctx, 198 static void ValidateQueryEULAAcceptanceCommand(const ProductContext& ctx,
211 const AppCommand& app_cmd, 199 const AppCommand& app_cmd,
212 bool* is_valid); 200 bool* is_valid);
213 static void ValidateQuickEnableApplicationHostCommand( 201 static void ValidateQuickEnableApplicationHostCommand(
214 const ProductContext& ctx, 202 const ProductContext& ctx,
215 const AppCommand& app_cmd, 203 const AppCommand& app_cmd,
216 bool* is_valid); 204 bool* is_valid);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 // A collection of all valid installation types. 245 // A collection of all valid installation types.
258 static const InstallationType kInstallationTypes[]; 246 static const InstallationType kInstallationTypes[];
259 247
260 private: 248 private:
261 DISALLOW_IMPLICIT_CONSTRUCTORS(InstallationValidator); 249 DISALLOW_IMPLICIT_CONSTRUCTORS(InstallationValidator);
262 }; 250 };
263 251
264 } // namespace installer 252 } // namespace installer
265 253
266 #endif // CHROME_INSTALLER_UTIL_INSTALLATION_VALIDATOR_H_ 254 #endif // CHROME_INSTALLER_UTIL_INSTALLATION_VALIDATOR_H_
OLDNEW
« no previous file with comments | « chrome/installer/setup/install_worker.cc ('k') | chrome/installer/util/installation_validator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698