| 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_STATE_H_ | 5 #ifndef CHROME_INSTALLER_UTIL_INSTALLATION_STATE_H_ |
| 6 #define CHROME_INSTALLER_UTIL_INSTALLATION_STATE_H_ | 6 #define CHROME_INSTALLER_UTIL_INSTALLATION_STATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
| 13 #include "base/file_path.h" | 13 #include "base/file_path.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "chrome/installer/util/app_commands.h" | 15 #include "chrome/installer/util/app_commands.h" |
| 16 #include "chrome/installer/util/browser_distribution.h" | 16 #include "chrome/installer/util/browser_distribution.h" |
| 17 #include "chrome/installer/util/channel_info.h" | 17 #include "chrome/installer/util/channel_info.h" |
| 18 | 18 |
| 19 class Version; | 19 class Version; |
| 20 | 20 |
| 21 namespace base { | 21 namespace base { |
| 22 namespace win { | 22 namespace win { |
| 23 class RegKey; | 23 class RegKey; |
| 24 } | 24 } |
| 25 } | 25 } |
| 26 | 26 |
| 27 namespace installer { | 27 namespace installer { |
| 28 | 28 |
| 29 class InstallationState; | 29 class InstallationState; |
| 30 class MasterPreferences; | |
| 31 | 30 |
| 32 // A representation of a product's state on the machine based on the contents | 31 // A representation of a product's state on the machine based on the contents |
| 33 // of the Windows registry. | 32 // of the Windows registry. |
| 34 // TODO(grt): Pull this out into its own file. | 33 // TODO(grt): Pull this out into its own file. |
| 35 class ProductState { | 34 class ProductState { |
| 36 public: | 35 public: |
| 37 ProductState(); | 36 ProductState(); |
| 38 | 37 |
| 39 // Returns true if the product is installed (i.e., the product's Clients key | 38 // Returns true if the product is installed (i.e., the product's Clients key |
| 40 // exists and has a "pv" value); false otherwise. | 39 // exists and has a "pv" value); false otherwise. |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 ProductState user_products_[NUM_PRODUCTS]; | 162 ProductState user_products_[NUM_PRODUCTS]; |
| 164 ProductState system_products_[NUM_PRODUCTS]; | 163 ProductState system_products_[NUM_PRODUCTS]; |
| 165 | 164 |
| 166 private: | 165 private: |
| 167 DISALLOW_COPY_AND_ASSIGN(InstallationState); | 166 DISALLOW_COPY_AND_ASSIGN(InstallationState); |
| 168 }; // class InstallationState | 167 }; // class InstallationState |
| 169 | 168 |
| 170 } // namespace installer | 169 } // namespace installer |
| 171 | 170 |
| 172 #endif // CHROME_INSTALLER_UTIL_INSTALLATION_STATE_H_ | 171 #endif // CHROME_INSTALLER_UTIL_INSTALLATION_STATE_H_ |
| OLD | NEW |