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_PRODUCT_H_ | 5 #ifndef CHROME_INSTALLER_UTIL_PRODUCT_H_ |
6 #define CHROME_INSTALLER_UTIL_PRODUCT_H_ | 6 #define CHROME_INSTALLER_UTIL_PRODUCT_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "chrome/installer/util/browser_distribution.h" | 13 #include "chrome/installer/util/browser_distribution.h" |
14 #include "chrome/installer/util/shell_util.h" | 14 #include "chrome/installer/util/shell_util.h" |
| 15 #include "chrome/installer/util/util_constants.h" |
15 | 16 |
16 class CommandLine; | 17 class CommandLine; |
17 | 18 |
18 namespace installer { | 19 namespace installer { |
19 | 20 |
20 class ChannelInfo; | 21 class ChannelInfo; |
21 class MasterPreferences; | 22 class MasterPreferences; |
22 class Product; | 23 class Product; |
23 class ProductOperations; | 24 class ProductOperations; |
24 | 25 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 void AppendRenameFlags(CommandLine* command_line) const; | 123 void AppendRenameFlags(CommandLine* command_line) const; |
123 | 124 |
124 // See Productoperations::SetChannelFlags. | 125 // See Productoperations::SetChannelFlags. |
125 bool SetChannelFlags(bool set, ChannelInfo* channel_info) const; | 126 bool SetChannelFlags(bool set, ChannelInfo* channel_info) const; |
126 | 127 |
127 // See ProductOperations::AddDefaultShortcutProperties. | 128 // See ProductOperations::AddDefaultShortcutProperties. |
128 void AddDefaultShortcutProperties( | 129 void AddDefaultShortcutProperties( |
129 const base::FilePath& target_exe, | 130 const base::FilePath& target_exe, |
130 ShellUtil::ShortcutProperties* properties) const; | 131 ShellUtil::ShortcutProperties* properties) const; |
131 | 132 |
| 133 void LaunchUserExperiment(const base::FilePath& setup_path, |
| 134 InstallStatus status, |
| 135 bool system_level) const; |
| 136 |
132 protected: | 137 protected: |
133 enum CacheStateFlags { | 138 enum CacheStateFlags { |
134 MSI_STATE = 0x01 | 139 MSI_STATE = 0x01 |
135 }; | 140 }; |
136 | 141 |
137 BrowserDistribution* distribution_; | 142 BrowserDistribution* distribution_; |
138 scoped_ptr<ProductOperations> operations_; | 143 scoped_ptr<ProductOperations> operations_; |
139 std::set<std::wstring> options_; | 144 std::set<std::wstring> options_; |
140 | 145 |
141 private: | 146 private: |
142 DISALLOW_COPY_AND_ASSIGN(Product); | 147 DISALLOW_COPY_AND_ASSIGN(Product); |
143 }; | 148 }; |
144 | 149 |
145 } // namespace installer | 150 } // namespace installer |
146 | 151 |
147 #endif // CHROME_INSTALLER_UTIL_PRODUCT_H_ | 152 #endif // CHROME_INSTALLER_UTIL_PRODUCT_H_ |
OLD | NEW |