OLD | NEW |
---|---|
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_INSTALLER_STATE_H_ | 5 #ifndef CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_ |
6 #define CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_ | 6 #define CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... | |
31 | 31 |
32 // Initializes |this| based on the current operation. | 32 // Initializes |this| based on the current operation. |
33 void Initialize(const MasterPreferences& prefs, | 33 void Initialize(const MasterPreferences& prefs, |
34 const InstallationState& machine_state); | 34 const InstallationState& machine_state); |
35 | 35 |
36 // true if system-level, false if user-level. | 36 // true if system-level, false if user-level. |
37 bool system_install() const { return system_install_; } | 37 bool system_install() const { return system_install_; } |
38 | 38 |
39 Operation operation() const { return operation_; } | 39 Operation operation() const { return operation_; } |
40 | 40 |
41 BrowserDistribution::Type GetInstallOperand() const { | |
42 return install_operand_; | |
43 } | |
44 | |
45 // The ClientState key by which we interact with Google Update. | 41 // The ClientState key by which we interact with Google Update. |
46 const std::wstring& state_key() const { return state_key_; } | 42 const std::wstring& state_key() const { return state_key_; } |
47 | 43 |
48 private: | 44 protected: |
49 bool IsMultiInstallUpdate(const MasterPreferences& prefs, | 45 bool IsMultiInstallUpdate(const MasterPreferences& prefs, |
50 const InstallationState& machine_state); | 46 const InstallationState& machine_state); |
51 | 47 |
52 Operation operation_; | 48 Operation operation_; |
53 BrowserDistribution::Type install_operand_; | |
54 std::wstring state_key_; | 49 std::wstring state_key_; |
55 bool system_install_; | 50 bool system_install_; |
56 | 51 |
grt (UTC plus 2)
2011/01/12 16:18:02
private:
robertshield
2011/01/13 17:06:32
Done.
| |
57 DISALLOW_COPY_AND_ASSIGN(InstallerState); | 52 DISALLOW_COPY_AND_ASSIGN(InstallerState); |
58 }; // class InstallerState | 53 }; // class InstallerState |
59 | 54 |
60 } // namespace installer | 55 } // namespace installer |
61 | 56 |
62 #endif // CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_ | 57 #endif // CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_ |
OLD | NEW |