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_CHROME_FRAME_OPERATIONS_H_ | 5 #ifndef CHROME_INSTALLER_UTIL_CHROME_FRAME_OPERATIONS_H_ |
6 #define CHROME_INSTALLER_UTIL_CHROME_FRAME_OPERATIONS_H_ | 6 #define CHROME_INSTALLER_UTIL_CHROME_FRAME_OPERATIONS_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "chrome/installer/util/product_operations.h" | 10 #include "chrome/installer/util/product_operations.h" |
11 | 11 |
12 namespace installer { | 12 namespace installer { |
13 | 13 |
14 // Operations specific to Chrome Frame; see ProductOperations for general info. | 14 // Operations specific to Chrome Frame; see ProductOperations for general info. |
15 class ChromeFrameOperations : public ProductOperations { | 15 class ChromeFrameOperations : public ProductOperations { |
16 public: | 16 public: |
17 ChromeFrameOperations() {} | 17 ChromeFrameOperations() {} |
18 | 18 |
19 virtual void ReadOptions(const MasterPreferences& prefs, | 19 virtual void ReadOptions(const MasterPreferences& prefs, |
20 std::set<std::wstring>* options) const OVERRIDE; | 20 std::set<string16>* options) const OVERRIDE; |
21 | 21 |
22 virtual void ReadOptions(const CommandLine& uninstall_command, | 22 virtual void ReadOptions(const CommandLine& uninstall_command, |
23 std::set<std::wstring>* options) const OVERRIDE; | 23 std::set<string16>* options) const OVERRIDE; |
24 | 24 |
25 virtual void AddKeyFiles( | 25 virtual void AddKeyFiles( |
26 const std::set<std::wstring>& options, | 26 const std::set<string16>& options, |
27 std::vector<base::FilePath>* key_files) const OVERRIDE; | 27 std::vector<base::FilePath>* key_files) const OVERRIDE; |
28 | 28 |
29 virtual void AddComDllList( | 29 virtual void AddComDllList( |
30 const std::set<std::wstring>& options, | 30 const std::set<string16>& options, |
31 std::vector<base::FilePath>* com_dll_list) const OVERRIDE; | 31 std::vector<base::FilePath>* com_dll_list) const OVERRIDE; |
32 | 32 |
33 virtual void AppendProductFlags( | 33 virtual void AppendProductFlags(const std::set<string16>& options, |
34 const std::set<std::wstring>& options, | 34 CommandLine* cmd_line) const OVERRIDE; |
35 CommandLine* cmd_line) const OVERRIDE; | |
36 | 35 |
37 virtual void AppendRenameFlags( | 36 virtual void AppendRenameFlags(const std::set<string16>& options, |
38 const std::set<std::wstring>& options, | 37 CommandLine* cmd_line) const OVERRIDE; |
39 CommandLine* cmd_line) const OVERRIDE; | |
40 | 38 |
41 virtual bool SetChannelFlags(const std::set<std::wstring>& options, | 39 virtual bool SetChannelFlags(const std::set<string16>& options, |
42 bool set, | 40 bool set, |
43 ChannelInfo* channel_info) const OVERRIDE; | 41 ChannelInfo* channel_info) const OVERRIDE; |
44 | 42 |
45 virtual bool ShouldCreateUninstallEntry( | 43 virtual bool ShouldCreateUninstallEntry( |
46 const std::set<std::wstring>& options) const OVERRIDE; | 44 const std::set<string16>& options) const OVERRIDE; |
47 | 45 |
48 virtual void AddDefaultShortcutProperties( | 46 virtual void AddDefaultShortcutProperties( |
49 BrowserDistribution* dist, | 47 BrowserDistribution* dist, |
50 const base::FilePath& target_exe, | 48 const base::FilePath& target_exe, |
51 ShellUtil::ShortcutProperties* properties) const OVERRIDE; | 49 ShellUtil::ShortcutProperties* properties) const OVERRIDE; |
52 | 50 |
| 51 virtual void LaunchUserExperiment(const base::FilePath& setup_path, |
| 52 const std::set<string16>& options, |
| 53 InstallStatus status, |
| 54 bool system_level) const OVERRIDE; |
| 55 |
53 protected: | 56 protected: |
54 void NormalizeOptions(std::set<std::wstring>* options) const; | 57 void NormalizeOptions(std::set<string16>* options) const; |
55 | 58 |
56 private: | 59 private: |
57 DISALLOW_COPY_AND_ASSIGN(ChromeFrameOperations); | 60 DISALLOW_COPY_AND_ASSIGN(ChromeFrameOperations); |
58 }; | 61 }; |
59 | 62 |
60 } // namespace installer | 63 } // namespace installer |
61 | 64 |
62 #endif // CHROME_INSTALLER_UTIL_CHROME_FRAME_OPERATIONS_H_ | 65 #endif // CHROME_INSTALLER_UTIL_CHROME_FRAME_OPERATIONS_H_ |
OLD | NEW |