Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / installer / util / chrome_browser_operations.h
blobfe17c91114ee119dfe6a5bc035c2535d10f3dcf9
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_BROWSER_OPERATIONS_H_
6 #define CHROME_INSTALLER_UTIL_CHROME_BROWSER_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 Chrome; see ProductOperations for general info.
15 class ChromeBrowserOperations : public ProductOperations {
16 public:
17 ChromeBrowserOperations() {}
19 void ReadOptions(const MasterPreferences& prefs,
20 std::set<base::string16>* options) const override;
22 void ReadOptions(const base::CommandLine& uninstall_command,
23 std::set<base::string16>* options) const override;
25 void AddKeyFiles(const std::set<base::string16>& options,
26 std::vector<base::FilePath>* key_files) const override;
28 void AddComDllList(const std::set<base::string16>& options,
29 std::vector<base::FilePath>* com_dll_list) const override;
31 void AppendProductFlags(const std::set<base::string16>& options,
32 base::CommandLine* cmd_line) const override;
34 void AppendRenameFlags(const std::set<base::string16>& options,
35 base::CommandLine* cmd_line) const override;
37 bool SetChannelFlags(const std::set<base::string16>& options,
38 bool set,
39 ChannelInfo* channel_info) const override;
41 bool ShouldCreateUninstallEntry(
42 const std::set<base::string16>& options) const override;
44 void AddDefaultShortcutProperties(
45 BrowserDistribution* dist,
46 const base::FilePath& target_exe,
47 ShellUtil::ShortcutProperties* properties) const override;
49 void LaunchUserExperiment(const base::FilePath& setup_path,
50 const std::set<base::string16>& options,
51 InstallStatus status,
52 bool system_level) const override;
54 private:
55 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserOperations);
58 } // namespace installer
60 #endif // CHROME_INSTALLER_UTIL_CHROME_BROWSER_OPERATIONS_H_