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