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_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 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 // Caller does NOT assume ownership of returned pointer. This method will | 147 // Caller does NOT assume ownership of returned pointer. This method will |
148 // never return NULL. | 148 // never return NULL. |
149 const ProductState* GetNonVersionedProductState( | 149 const ProductState* GetNonVersionedProductState( |
150 bool system_install, BrowserDistribution::Type type) const; | 150 bool system_install, BrowserDistribution::Type type) const; |
151 | 151 |
152 protected: | 152 protected: |
153 enum { | 153 enum { |
154 CHROME_BROWSER_INDEX, | 154 CHROME_BROWSER_INDEX, |
155 CHROME_FRAME_INDEX, | 155 CHROME_FRAME_INDEX, |
156 CHROME_BINARIES_INDEX, | 156 CHROME_BINARIES_INDEX, |
157 CHROME_APP_HOST_INDEX, | |
158 NUM_PRODUCTS | 157 NUM_PRODUCTS |
159 }; | 158 }; |
160 | 159 |
161 static int IndexFromDistType(BrowserDistribution::Type type); | 160 static int IndexFromDistType(BrowserDistribution::Type type); |
162 | 161 |
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 |