Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / installer / util / chrome_binaries_operations.h
blob88b819922b9dcbb36cf5b308aa4458f60f538a66
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
3 // found in the LICENSE file.
5 #ifndef CHROME_INSTALLER_UTIL_CHROME_BINARIES_OPERATIONS_H_
6 #define CHROME_INSTALLER_UTIL_CHROME_BINARIES_OPERATIONS_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "chrome/installer/util/product_operations.h"
12 namespace installer {
14 // Operations specific to the Chrome Binaries; see ProductOperations for general
15 // info.
16 class ChromeBinariesOperations : public ProductOperations {
17 public:
18 ChromeBinariesOperations() {}
20 void ReadOptions(const MasterPreferences& prefs,
21 std::set<base::string16>* options) const override;
23 void ReadOptions(const base::CommandLine& uninstall_command,
24 std::set<base::string16>* options) const override;
26 void AddKeyFiles(const std::set<base::string16>& options,
27 std::vector<base::FilePath>* key_files) const override;
29 void AddComDllList(const std::set<base::string16>& options,
30 std::vector<base::FilePath>* com_dll_list) const override;
32 void AppendProductFlags(const std::set<base::string16>& options,
33 base::CommandLine* cmd_line) const override;
35 void AppendRenameFlags(const std::set<base::string16>& options,
36 base::CommandLine* cmd_line) const override;
38 bool SetChannelFlags(const std::set<base::string16>& options,
39 bool set,
40 ChannelInfo* channel_info) const override;
42 bool ShouldCreateUninstallEntry(
43 const std::set<base::string16>& options) const override;
45 void AddDefaultShortcutProperties(
46 BrowserDistribution* dist,
47 const base::FilePath& target_exe,
48 ShellUtil::ShortcutProperties* properties) const override;
50 void LaunchUserExperiment(const base::FilePath& setup_path,
51 const std::set<base::string16>& options,
52 InstallStatus status,
53 bool system_level) const override;
55 private:
56 DISALLOW_COPY_AND_ASSIGN(ChromeBinariesOperations);
59 } // namespace installer
61 #endif // CHROME_INSTALLER_UTIL_CHROME_BINARIES_OPERATIONS_H_