OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 contains the specification of setup main functions. | 5 // This file contains the specification of setup main functions. |
6 | 6 |
7 #ifndef CHROME_INSTALLER_SETUP_CHROME_FRAME_READY_MODE_H_ | 7 #ifndef CHROME_INSTALLER_SETUP_CHROME_FRAME_READY_MODE_H_ |
8 #define CHROME_INSTALLER_SETUP_CHROME_FRAME_READY_MODE_H_ | 8 #define CHROME_INSTALLER_SETUP_CHROME_FRAME_READY_MODE_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
11 class CommandLine; | 11 class CommandLine; |
12 | 12 |
13 namespace installer { | 13 namespace installer { |
14 | 14 |
15 enum InstallStatus; | 15 enum InstallStatus; |
| 16 class InstallationState; |
16 class InstallerState; | 17 class InstallerState; |
17 | 18 |
18 // Removes the ChromeFrameReadyMode flag from the registry, updates Chrome's | 19 // Removes the ChromeFrameReadyMode flag from the registry, updates Chrome's |
19 // uninstallation commands to only uninstall Chrome, and adds an entry to the | 20 // uninstallation commands to only uninstall Chrome, and adds an entry to the |
20 // Add/Remove Programs list for GCF. | 21 // Add/Remove Programs list for GCF. |
21 InstallStatus ChromeFrameReadyModeOptIn(const InstallerState& installer_state, | 22 InstallStatus ChromeFrameReadyModeOptIn(const InstallationState& machine_state, |
22 const CommandLine& cmd_line); | 23 const InstallerState& installer_state); |
23 | 24 |
24 // Unregisters the ChromeFrame user agent modification, sets a timestamp for | 25 // Unregisters the ChromeFrame user agent modification, sets a timestamp for |
25 // restoring it. | 26 // restoring it. |
26 InstallStatus ChromeFrameReadyModeTempOptOut(const CommandLine& cmd_line); | 27 InstallStatus ChromeFrameReadyModeTempOptOut( |
| 28 const InstallationState& machine_state, |
| 29 const InstallerState& installer_state); |
27 | 30 |
28 // Re-registers the ChromeFrame user agent modification, restores Ready Mode | 31 // Re-registers the ChromeFrame user agent modification, restores Ready Mode |
29 // active state flag. | 32 // active state flag. |
30 InstallStatus ChromeFrameReadyModeEndTempOptOut(const CommandLine& cmd_line); | 33 InstallStatus ChromeFrameReadyModeEndTempOptOut( |
| 34 const InstallationState& machine_state, |
| 35 const InstallerState& installer_state); |
31 | 36 |
32 } // namespace installer | 37 } // namespace installer |
33 | 38 |
34 #endif // CHROME_INSTALLER_SETUP_CHROME_FRAME_READY_MODE_H_ | 39 #endif // CHROME_INSTALLER_SETUP_CHROME_FRAME_READY_MODE_H_ |
OLD | NEW |