Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: chrome/installer/util/product_operations.h

Issue 94013004: Add base:: to string16s in chrome/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: try again Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/installer/util/l10n_string_util.h ('k') | chrome/installer/util/shell_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_PRODUCT_OPERATIONS_H_ 5 #ifndef CHROME_INSTALLER_UTIL_PRODUCT_OPERATIONS_H_
6 #define CHROME_INSTALLER_UTIL_PRODUCT_OPERATIONS_H_ 6 #define CHROME_INSTALLER_UTIL_PRODUCT_OPERATIONS_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 14 matching lines...) Expand all
25 // An interface to product-specific operations that depend on product 25 // An interface to product-specific operations that depend on product
26 // configuration. Implementations are expected to be stateless. Configuration 26 // configuration. Implementations are expected to be stateless. Configuration
27 // can be read from a MasterPreferences instance or from a product's uninstall 27 // can be read from a MasterPreferences instance or from a product's uninstall
28 // command. 28 // command.
29 class ProductOperations { 29 class ProductOperations {
30 public: 30 public:
31 virtual ~ProductOperations() {} 31 virtual ~ProductOperations() {}
32 32
33 // Reads product-specific options from |prefs|, adding them to |options|. 33 // Reads product-specific options from |prefs|, adding them to |options|.
34 virtual void ReadOptions(const MasterPreferences& prefs, 34 virtual void ReadOptions(const MasterPreferences& prefs,
35 std::set<string16>* options) const = 0; 35 std::set<base::string16>* options) const = 0;
36 36
37 // Reads product-specific options from |command|, adding them to |options|. 37 // Reads product-specific options from |command|, adding them to |options|.
38 virtual void ReadOptions(const CommandLine& command, 38 virtual void ReadOptions(const CommandLine& command,
39 std::set<string16>* options) const = 0; 39 std::set<base::string16>* options) const = 0;
40 40
41 // A key-file is a file such as a DLL on Windows that is expected to be in use 41 // A key-file is a file such as a DLL on Windows that is expected to be in use
42 // when the product is being used. For example "chrome.dll" for Chrome. 42 // when the product is being used. For example "chrome.dll" for Chrome.
43 // Before attempting to delete an installation directory during an 43 // Before attempting to delete an installation directory during an
44 // uninstallation, the uninstaller will check if any one of a potential set of 44 // uninstallation, the uninstaller will check if any one of a potential set of
45 // key files is in use and if they are, abort the delete operation. Only if 45 // key files is in use and if they are, abort the delete operation. Only if
46 // none of the key files are in use, can the folder be deleted. Note that 46 // none of the key files are in use, can the folder be deleted. Note that
47 // this function does not return a full path to the key file(s), only (a) file 47 // this function does not return a full path to the key file(s), only (a) file
48 // name(s). 48 // name(s).
49 virtual void AddKeyFiles(const std::set<string16>& options, 49 virtual void AddKeyFiles(const std::set<base::string16>& options,
50 std::vector<base::FilePath>* key_files) const = 0; 50 std::vector<base::FilePath>* key_files) const = 0;
51 51
52 // Adds to |com_dll_list| the list of COM DLLs that are to be registered 52 // Adds to |com_dll_list| the list of COM DLLs that are to be registered
53 // and/or unregistered. The list may be empty. 53 // and/or unregistered. The list may be empty.
54 virtual void AddComDllList( 54 virtual void AddComDllList(
55 const std::set<string16>& options, 55 const std::set<base::string16>& options,
56 std::vector<base::FilePath>* com_dll_list) const = 0; 56 std::vector<base::FilePath>* com_dll_list) const = 0;
57 57
58 // Given a command line, appends the set of product-specific flags. These are 58 // Given a command line, appends the set of product-specific flags. These are
59 // required for product-specific uninstall commands, but are of use for any 59 // required for product-specific uninstall commands, but are of use for any
60 // invocation of setup.exe for the product. 60 // invocation of setup.exe for the product.
61 virtual void AppendProductFlags(const std::set<string16>& options, 61 virtual void AppendProductFlags(const std::set<base::string16>& options,
62 CommandLine* cmd_line) const = 0; 62 CommandLine* cmd_line) const = 0;
63 63
64 // Given a command line, appends the set of product-specific rename flags. 64 // Given a command line, appends the set of product-specific rename flags.
65 virtual void AppendRenameFlags(const std::set<string16>& options, 65 virtual void AppendRenameFlags(const std::set<base::string16>& options,
66 CommandLine* cmd_line) const = 0; 66 CommandLine* cmd_line) const = 0;
67 67
68 // Adds or removes product-specific flags in |channel_info|. Returns true if 68 // Adds or removes product-specific flags in |channel_info|. Returns true if
69 // |channel_info| is modified. 69 // |channel_info| is modified.
70 virtual bool SetChannelFlags(const std::set<string16>& options, 70 virtual bool SetChannelFlags(const std::set<base::string16>& options,
71 bool set, 71 bool set,
72 ChannelInfo* channel_info) const = 0; 72 ChannelInfo* channel_info) const = 0;
73 73
74 // Returns true if setup should create an entry in the Add/Remove list 74 // Returns true if setup should create an entry in the Add/Remove list
75 // of installed applications for this product. This does not test for use of 75 // of installed applications for this product. This does not test for use of
76 // MSI; see InstallerState::is_msi. 76 // MSI; see InstallerState::is_msi.
77 virtual bool ShouldCreateUninstallEntry( 77 virtual bool ShouldCreateUninstallEntry(
78 const std::set<string16>& options) const = 0; 78 const std::set<base::string16>& options) const = 0;
79 79
80 // Modifies a ShellUtil::ShortcutProperties object by assigning default values 80 // Modifies a ShellUtil::ShortcutProperties object by assigning default values
81 // to unintialized members. 81 // to unintialized members.
82 virtual void AddDefaultShortcutProperties( 82 virtual void AddDefaultShortcutProperties(
83 BrowserDistribution* dist, 83 BrowserDistribution* dist,
84 const base::FilePath& target_exe, 84 const base::FilePath& target_exe,
85 ShellUtil::ShortcutProperties* properties) const = 0; 85 ShellUtil::ShortcutProperties* properties) const = 0;
86 86
87 // After an install or upgrade the user might qualify to participate in an 87 // After an install or upgrade the user might qualify to participate in an
88 // experiment. This function determines if the user qualifies and if so it 88 // experiment. This function determines if the user qualifies and if so it
89 // sets the wheels in motion or in simple cases does the experiment itself. 89 // sets the wheels in motion or in simple cases does the experiment itself.
90 virtual void LaunchUserExperiment(const base::FilePath& setup_path, 90 virtual void LaunchUserExperiment(const base::FilePath& setup_path,
91 const std::set<string16>& options, 91 const std::set<base::string16>& options,
92 InstallStatus status, 92 InstallStatus status,
93 bool system_level) const = 0; 93 bool system_level) const = 0;
94 }; 94 };
95 95
96 } // namespace installer 96 } // namespace installer
97 97
98 #endif // CHROME_INSTALLER_UTIL_PRODUCT_OPERATIONS_H_ 98 #endif // CHROME_INSTALLER_UTIL_PRODUCT_OPERATIONS_H_
OLDNEW
« no previous file with comments | « chrome/installer/util/l10n_string_util.h ('k') | chrome/installer/util/shell_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698