|
OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2011 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. | |
4 | |
5 #ifndef CHROME_INSTALLER_UTIL_CHROME_BROWSER_OPERATIONS_H_ | |
6 #define CHROME_INSTALLER_UTIL_CHROME_BROWSER_OPERATIONS_H_ | |
7 #pragma once | |
8 | |
9 #include <set> | |
10 #include <string> | |
11 #include <vector> | |
12 | |
13 #include "base/basictypes.h" | |
14 #include "base/compiler_specific.h" | |
15 #include "chrome/installer/util/product_operations.h" | |
16 | |
17 namespace installer { | |
18 | |
19 // Operations specific to Chrome; see ProductOperations for general info. | |
20 class ChromeBrowserOperations : public ProductOperations { | |
21 public: | |
22 ChromeBrowserOperations() {} | |
23 | |
24 virtual void ReadOptions(const MasterPreferences& prefs, | |
25 std::set<std::wstring>* options) OVERRIDE; | |
tommi (sloooow) - chröme
2011/01/21 21:45:17
I think the "= 0;" approach is more common. Is chr
grt (UTC plus 2)
2011/01/24 16:07:02
"= 0;" makes a method pure-virtual. "OVERRIDE" is
tommi (sloooow) - chröme
2011/01/24 19:39:39
Thanks for the info! In that case it does sound v
grt (UTC plus 2)
2011/01/25 03:09:39
It's an MS feature originally built for targeting
| |
26 | |
27 virtual void ReadOptions(const CommandLine& uninstall_command, | |
28 std::set<std::wstring>* options) OVERRIDE; | |
29 | |
30 virtual void AddKeyFiles(const std::set<std::wstring>& options, | |
31 std::vector<FilePath>* key_files) OVERRIDE; | |
32 | |
33 virtual void AddComDllList(const std::set<std::wstring>& options, | |
34 std::vector<FilePath>* com_dll_list) OVERRIDE; | |
35 | |
36 virtual void AppendProductFlags( | |
37 const std::set<std::wstring>& options, | |
38 CommandLine* uninstall_command) OVERRIDE; | |
39 | |
40 virtual bool SetChannelFlags(const std::set<std::wstring>& options, | |
41 bool set, | |
42 ChannelInfo* channel_info) const OVERRIDE; | |
43 | |
44 virtual bool ShouldCreateUninstallEntry( | |
45 const std::set<std::wstring>& options) const OVERRIDE; | |
46 | |
47 private: | |
48 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserOperations); | |
49 }; | |
50 | |
51 } // namespace installer | |
52 | |
53 #endif // CHROME_INSTALLER_UTIL_CHROME_BROWSER_OPERATIONS_H_ | |
OLD | NEW |