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