OLD | NEW |
1 // Copyright (c) 2011 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" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 // Caller does NOT assume ownership of returned pointer. This method will | 146 // Caller does NOT assume ownership of returned pointer. This method will |
147 // never return NULL. | 147 // never return NULL. |
148 const ProductState* GetNonVersionedProductState( | 148 const ProductState* GetNonVersionedProductState( |
149 bool system_install, BrowserDistribution::Type type) const; | 149 bool system_install, BrowserDistribution::Type type) const; |
150 | 150 |
151 protected: | 151 protected: |
152 enum { | 152 enum { |
153 CHROME_BROWSER_INDEX, | 153 CHROME_BROWSER_INDEX, |
154 CHROME_FRAME_INDEX, | 154 CHROME_FRAME_INDEX, |
155 CHROME_BINARIES_INDEX, | 155 CHROME_BINARIES_INDEX, |
| 156 CHROME_APP_HOST_INDEX, |
156 NUM_PRODUCTS | 157 NUM_PRODUCTS |
157 }; | 158 }; |
158 | 159 |
159 static int IndexFromDistType(BrowserDistribution::Type type); | 160 static int IndexFromDistType(BrowserDistribution::Type type); |
160 | 161 |
161 ProductState user_products_[NUM_PRODUCTS]; | 162 ProductState user_products_[NUM_PRODUCTS]; |
162 ProductState system_products_[NUM_PRODUCTS]; | 163 ProductState system_products_[NUM_PRODUCTS]; |
163 | 164 |
164 private: | 165 private: |
165 DISALLOW_COPY_AND_ASSIGN(InstallationState); | 166 DISALLOW_COPY_AND_ASSIGN(InstallationState); |
166 }; // class InstallationState | 167 }; // class InstallationState |
167 | 168 |
168 } // namespace installer | 169 } // namespace installer |
169 | 170 |
170 #endif // CHROME_INSTALLER_UTIL_INSTALLATION_STATE_H_ | 171 #endif // CHROME_INSTALLER_UTIL_INSTALLATION_STATE_H_ |
OLD | NEW |