OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 |
11 #include "chrome/installer/util/browser_distribution.h" | 11 #include "chrome/installer/util/browser_distribution.h" |
12 #include "chrome/installer/util/util_constants.h" | 12 #include "chrome/installer/util/util_constants.h" |
13 | 13 |
14 class GoogleChromeDistribution : public BrowserDistribution { | 14 class GoogleChromeDistribution : public BrowserDistribution { |
15 public: | 15 public: |
16 virtual void DoPostUninstallOperations(const installer::Version& version); | 16 virtual void DoPostUninstallOperations(const installer::Version& version); |
17 | 17 |
18 virtual void DoPreUninstallOperations(); | |
19 | |
20 virtual std::wstring GetApplicationName(); | 18 virtual std::wstring GetApplicationName(); |
21 | 19 |
22 virtual std::wstring GetInstallSubDir(); | 20 virtual std::wstring GetInstallSubDir(); |
23 | 21 |
24 // This method generates the new value for Google Update "ap" key for Chrome | 22 // This method generates the new value for Google Update "ap" key for Chrome |
25 // based on whether we are doing incremental install (or not) and whether | 23 // based on whether we are doing incremental install (or not) and whether |
26 // the install succeeded. | 24 // the install succeeded. |
27 // - If install worked, remove the magic string (if present). | 25 // - If install worked, remove the magic string (if present). |
28 // - If incremental installer failed, append a magic string (if | 26 // - If incremental installer failed, append a magic string (if |
29 // not present already). | 27 // not present already). |
(...skipping 21 matching lines...) Expand all Loading... |
51 bool incremental_install, installer_util::InstallStatus install_status); | 49 bool incremental_install, installer_util::InstallStatus install_status); |
52 | 50 |
53 private: | 51 private: |
54 friend class BrowserDistribution; | 52 friend class BrowserDistribution; |
55 | 53 |
56 GoogleChromeDistribution() {} | 54 GoogleChromeDistribution() {} |
57 }; | 55 }; |
58 | 56 |
59 #endif // CHROME_INSTALLER_UTIL_GOOGLE_CHROME_DISTRIBUTION_H_ | 57 #endif // CHROME_INSTALLER_UTIL_GOOGLE_CHROME_DISTRIBUTION_H_ |
60 | 58 |
OLD | NEW |