Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Side by Side Diff: chrome/installer/setup/install.h

Issue 6153003: Refactor install.cc into the work item parts and the non-work item parts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 contains the specification of setup main functions. 5 // This file contains the specification of setup main functions.
6 6
7 #ifndef CHROME_INSTALLER_SETUP_INSTALL_H_ 7 #ifndef CHROME_INSTALLER_SETUP_INSTALL_H_
8 #define CHROME_INSTALLER_SETUP_INSTALL_H_ 8 #define CHROME_INSTALLER_SETUP_INSTALL_H_
9 #pragma once 9 #pragma once
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // Note: since caller unpacks Chrome to install_temp_path\source, the caller 44 // Note: since caller unpacks Chrome to install_temp_path\source, the caller
45 // is responsible for cleaning up install_temp_path. 45 // is responsible for cleaning up install_temp_path.
46 InstallStatus InstallOrUpdateProduct( 46 InstallStatus InstallOrUpdateProduct(
47 const InstallationState& original_state, 47 const InstallationState& original_state,
48 const InstallerState& installer_state, 48 const InstallerState& installer_state,
49 const FilePath& setup_path, const FilePath& archive_path, 49 const FilePath& setup_path, const FilePath& archive_path,
50 const FilePath& install_temp_path, const FilePath& prefs_path, 50 const FilePath& install_temp_path, const FilePath& prefs_path,
51 const installer::MasterPreferences& prefs, const Version& new_version, 51 const installer::MasterPreferences& prefs, const Version& new_version,
52 const Package& package); 52 const Package& package);
53 53
54 // Appends registration or unregistration work items to |work_item_list| for the
55 // COM DLLs whose file names are given in |dll_files| and which reside in the
56 // path |dll_folder|.
57 // |system_level| specifies whether to call the system or user level DLL
58 // registration entry points.
59 // |do_register| says whether to register or unregister.
60 // |may_fail| states whether this is best effort or not. If |may_fail| is true
61 // then |work_item_list| will still succeed if the registration fails and
62 // no registration rollback will be performed.
63 void AddRegisterComDllWorkItems(const FilePath& dll_folder,
64 const std::vector<FilePath>& dll_files,
65 bool system_level,
66 bool do_register,
67 bool ignore_failures,
68 WorkItemList* work_item_list);
69 54
70 void AddSetMsiMarkerWorkItem(const Product& product,
71 bool set,
72 WorkItemList* work_item_list);
73
74 // Called for either installation or uninstallation. This method updates the
75 // registry according to Chrome Frame specific options for the current
76 // installation. This includes handling of the ready-mode option.
77 void AddChromeFrameWorkItems(bool install, const FilePath& setup_path,
78 const Version& new_version, const Product& product,
79 WorkItemList* list);
80 55
81 // Removes the ChromeFrameReadyMode flag from the registry, updates Chrome's 56 // Removes the ChromeFrameReadyMode flag from the registry, updates Chrome's
82 // uninstallation commands to only uninstall Chrome, and adds an entry to the 57 // uninstallation commands to only uninstall Chrome, and adds an entry to the
83 // Add/Remove Programs list for GCF. 58 // Add/Remove Programs list for GCF.
84 InstallStatus ChromeFrameReadyModeOptIn(const InstallerState& installer_state, 59 InstallStatus ChromeFrameReadyModeOptIn(const InstallerState& installer_state,
85 const CommandLine& cmd_line); 60 const CommandLine& cmd_line);
86 61
87 } // namespace installer 62 } // namespace installer
88 63
89 #endif // CHROME_INSTALLER_SETUP_INSTALL_H_ 64 #endif // CHROME_INSTALLER_SETUP_INSTALL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698