| 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; | |
| 12 | |
| 13 namespace installer { | 11 namespace installer { |
| 14 | 12 |
| 15 enum InstallStatus; | 13 enum InstallStatus; |
| 16 class InstallationState; | 14 class InstallationState; |
| 17 class InstallerState; | 15 class InstallerState; |
| 18 | 16 |
| 19 // Removes the ChromeFrameReadyMode flag from the registry, updates Chrome's | 17 // Removes the ChromeFrameReadyMode flag from the registry, updates Chrome's |
| 20 // uninstallation commands to only uninstall Chrome, and adds an entry to the | 18 // uninstallation commands to only uninstall Chrome, and adds an entry to the |
| 21 // Add/Remove Programs list for GCF. | 19 // Add/Remove Programs list for GCF. |
| 22 InstallStatus ChromeFrameReadyModeOptIn(const InstallationState& machine_state, | 20 InstallStatus ChromeFrameReadyModeOptIn(const InstallationState& machine_state, |
| 23 const InstallerState& installer_state); | 21 const InstallerState& installer_state); |
| 24 | 22 |
| 25 // Unregisters the ChromeFrame user agent modification, sets a timestamp for | 23 // Unregisters the ChromeFrame user agent modification, sets a timestamp for |
| 26 // restoring it. | 24 // restoring it. |
| 27 InstallStatus ChromeFrameReadyModeTempOptOut( | 25 InstallStatus ChromeFrameReadyModeTempOptOut( |
| 28 const InstallationState& machine_state, | 26 const InstallationState& machine_state, |
| 29 const InstallerState& installer_state); | 27 const InstallerState& installer_state); |
| 30 | 28 |
| 31 // Re-registers the ChromeFrame user agent modification, restores Ready Mode | 29 // Re-registers the ChromeFrame user agent modification, restores Ready Mode |
| 32 // active state flag. | 30 // active state flag. |
| 33 InstallStatus ChromeFrameReadyModeEndTempOptOut( | 31 InstallStatus ChromeFrameReadyModeEndTempOptOut( |
| 34 const InstallationState& machine_state, | 32 const InstallationState& machine_state, |
| 35 const InstallerState& installer_state); | 33 const InstallerState& installer_state); |
| 36 | 34 |
| 37 } // namespace installer | 35 } // namespace installer |
| 38 | 36 |
| 39 #endif // CHROME_INSTALLER_SETUP_CHROME_FRAME_READY_MODE_H_ | 37 #endif // CHROME_INSTALLER_SETUP_CHROME_FRAME_READY_MODE_H_ |
| OLD | NEW |