Chromium Code Reviews| 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_PRODUCT_H_ | 5 #ifndef CHROME_INSTALLER_UTIL_PRODUCT_H_ |
| 6 #define CHROME_INSTALLER_UTIL_PRODUCT_H_ | 6 #define CHROME_INSTALLER_UTIL_PRODUCT_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "chrome/installer/util/browser_distribution.h" | 14 #include "chrome/installer/util/browser_distribution.h" |
| 15 | 15 |
| 16 class CommandLine; | 16 class CommandLine; |
| 17 | 17 |
| 18 namespace installer { | 18 namespace installer { |
| 19 | 19 |
| 20 class ChannelInfo; | |
|
grt (UTC plus 2)
2011/11/11 14:48:42
This is needed for Product::SetChannelFlags(bool,
Lei Zhang
2011/11/11 19:50:53
Yes, that's why I'm adding it.
grt (UTC plus 2)
2011/11/12 01:47:32
Vision fail.
| |
| 20 class MasterPreferences; | 21 class MasterPreferences; |
| 21 class Product; | 22 class Product; |
| 22 class ProductOperations; | 23 class ProductOperations; |
| 23 | 24 |
| 24 // Represents an installation of a specific product which has a one-to-one | 25 // Represents an installation of a specific product which has a one-to-one |
| 25 // relation to a BrowserDistribution. A product has registry settings, related | 26 // relation to a BrowserDistribution. A product has registry settings, related |
| 26 // installation/uninstallation actions and exactly one Package that represents | 27 // installation/uninstallation actions and exactly one Package that represents |
| 27 // the files on disk. The Package may be shared with other Product instances, | 28 // the files on disk. The Package may be shared with other Product instances, |
| 28 // so only the last Product to be uninstalled should remove the package. | 29 // so only the last Product to be uninstalled should remove the package. |
| 29 // Right now there are no classes that derive from Product, but in | 30 // Right now there are no classes that derive from Product, but in |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 120 scoped_ptr<ProductOperations> operations_; | 121 scoped_ptr<ProductOperations> operations_; |
| 121 std::set<std::wstring> options_; | 122 std::set<std::wstring> options_; |
| 122 | 123 |
| 123 private: | 124 private: |
| 124 DISALLOW_COPY_AND_ASSIGN(Product); | 125 DISALLOW_COPY_AND_ASSIGN(Product); |
| 125 }; | 126 }; |
| 126 | 127 |
| 127 } // namespace installer | 128 } // namespace installer |
| 128 | 129 |
| 129 #endif // CHROME_INSTALLER_UTIL_PRODUCT_H_ | 130 #endif // CHROME_INSTALLER_UTIL_PRODUCT_H_ |
| OLD | NEW |