OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 // This file extends generic BrowserDistribution class to declare Google Chrome | 5 // This file extends generic BrowserDistribution class to declare Google Chrome |
6 // specific implementation. | 6 // specific implementation. |
7 | 7 |
8 #ifndef CHROME_INSTALLER_UTIL_GOOGLE_CHROME_DISTRIBUTION_H_ | 8 #ifndef CHROME_INSTALLER_UTIL_GOOGLE_CHROME_DISTRIBUTION_H_ |
9 #define CHROME_INSTALLER_UTIL_GOOGLE_CHROME_DISTRIBUTION_H_ | 9 #define CHROME_INSTALLER_UTIL_GOOGLE_CHROME_DISTRIBUTION_H_ |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 const std::wstring& distribution_data); | 31 const std::wstring& distribution_data); |
32 | 32 |
33 virtual std::wstring GetAppGuid(); | 33 virtual std::wstring GetAppGuid(); |
34 | 34 |
35 virtual std::wstring GetApplicationName(); | 35 virtual std::wstring GetApplicationName(); |
36 | 36 |
37 virtual std::wstring GetAlternateApplicationName(); | 37 virtual std::wstring GetAlternateApplicationName(); |
38 | 38 |
39 virtual std::wstring GetInstallSubDir(); | 39 virtual std::wstring GetInstallSubDir(); |
40 | 40 |
41 // This method generates the new value for Google Update "ap" key for Chrome | |
42 // based on whether we are doing incremental install (or not) and whether | |
43 // the install succeeded. | |
44 // - If install worked, remove the magic string (if present). | |
45 // - If incremental installer failed, append a magic string (if | |
46 // not present already). | |
47 // - If full installer failed, still remove this magic | |
48 // string (if it is present already). | |
49 // | |
50 // diff_install: tells whether this is incremental install or not. | |
51 // install_status: if 0, means installation was successful. | |
52 // value: current value of Google Update "ap" key. | |
53 std::wstring GetNewGoogleUpdateApKey(bool diff_install, | |
54 installer_util::InstallStatus status, const std::wstring& value); | |
55 | |
56 virtual std::wstring GetPublisherName(); | 41 virtual std::wstring GetPublisherName(); |
57 | 42 |
58 virtual std::wstring GetAppDescription(); | 43 virtual std::wstring GetAppDescription(); |
59 | 44 |
60 virtual std::string GetSafeBrowsingName(); | 45 virtual std::string GetSafeBrowsingName(); |
61 | 46 |
62 virtual std::wstring GetStateKey(); | 47 virtual std::wstring GetStateKey(); |
63 | 48 |
64 virtual std::wstring GetStateMediumKey(); | 49 virtual std::wstring GetStateMediumKey(); |
65 | 50 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 // Returns true if at least one uninstall metric was found in | 105 // Returns true if at least one uninstall metric was found in |
121 // uninstall_metrics_dict, false otherwise. | 106 // uninstall_metrics_dict, false otherwise. |
122 virtual bool BuildUninstallMetricsString( | 107 virtual bool BuildUninstallMetricsString( |
123 DictionaryValue* uninstall_metrics_dict, std::wstring* metrics); | 108 DictionaryValue* uninstall_metrics_dict, std::wstring* metrics); |
124 | 109 |
125 // The product ID for Google Update. | 110 // The product ID for Google Update. |
126 std::wstring product_guid_; | 111 std::wstring product_guid_; |
127 }; | 112 }; |
128 | 113 |
129 #endif // CHROME_INSTALLER_UTIL_GOOGLE_CHROME_DISTRIBUTION_H_ | 114 #endif // CHROME_INSTALLER_UTIL_GOOGLE_CHROME_DISTRIBUTION_H_ |
OLD | NEW |