| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <utility> | 11 #include <utility> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
| 15 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
| 16 #include "base/memory/ref_counted.h" | |
| 17 #include "base/memory/scoped_ptr.h" | |
| 18 #include "chrome/installer/util/browser_distribution.h" | 16 #include "chrome/installer/util/browser_distribution.h" |
| 19 #include "chrome/installer/util/channel_info.h" | |
| 20 | 17 |
| 18 class CommandLine; |
| 21 class FilePath; | 19 class FilePath; |
| 22 class Version; | |
| 23 | 20 |
| 24 namespace installer { | 21 namespace installer { |
| 25 | 22 |
| 26 class InstallationState; | 23 class InstallationState; |
| 27 class AppCommand; | 24 class AppCommand; |
| 28 class ProductState; | 25 class ProductState; |
| 29 | 26 |
| 30 // A class that validates the state of an installation. Violations are logged | 27 // A class that validates the state of an installation. Violations are logged |
| 31 // via LOG(ERROR). | 28 // via LOG(ERROR). |
| 32 class InstallationValidator { | 29 class InstallationValidator { |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 // A collection of all valid installation types. | 208 // A collection of all valid installation types. |
| 212 static const InstallationType kInstallationTypes[]; | 209 static const InstallationType kInstallationTypes[]; |
| 213 | 210 |
| 214 private: | 211 private: |
| 215 DISALLOW_IMPLICIT_CONSTRUCTORS(InstallationValidator); | 212 DISALLOW_IMPLICIT_CONSTRUCTORS(InstallationValidator); |
| 216 }; | 213 }; |
| 217 | 214 |
| 218 } // namespace installer | 215 } // namespace installer |
| 219 | 216 |
| 220 #endif // CHROME_INSTALLER_UTIL_INSTALLATION_VALIDATOR_H_ | 217 #endif // CHROME_INSTALLER_UTIL_INSTALLATION_VALIDATOR_H_ |
| OLD | NEW |