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

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

Issue 10665002: Implement installation of the Chrome App Host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: install-application-host command and other fixes. Created 8 years, 5 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 declarations of the installer functions that build 5 // This file contains the declarations of the installer functions that build
6 // the WorkItemList used to install the application. 6 // the WorkItemList used to install the application.
7 7
8 #ifndef CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_ 8 #ifndef CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_
9 #define CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_ 9 #define CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_
10 #pragma once 10 #pragma once
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // do a few post install tasks: 57 // do a few post install tasks:
58 // - Handle the case of in-use-update by updating "opv" (old version) key or 58 // - Handle the case of in-use-update by updating "opv" (old version) key or
59 // deleting it if not required. 59 // deleting it if not required.
60 // - Register any new dlls and unregister old dlls. 60 // - Register any new dlls and unregister old dlls.
61 // - If this is an MSI install, ensures that the MSI marker is set, and sets 61 // - If this is an MSI install, ensures that the MSI marker is set, and sets
62 // it if not. 62 // it if not.
63 // If these operations are successful, the function returns true, otherwise 63 // If these operations are successful, the function returns true, otherwise
64 // false. 64 // false.
65 bool AppendPostInstallTasks(const InstallerState& installer_state, 65 bool AppendPostInstallTasks(const InstallerState& installer_state,
66 const FilePath& setup_path, 66 const FilePath& setup_path,
67 const FilePath& new_chrome_exe,
68 const Version* current_version, 67 const Version* current_version,
69 const Version& new_version, 68 const Version& new_version,
70 const FilePath& temp_path, 69 const FilePath& temp_path,
71 WorkItemList* post_install_task_list); 70 WorkItemList* post_install_task_list);
72 71
73 // Builds the complete WorkItemList used to build the set of installation steps 72 // Builds the complete WorkItemList used to build the set of installation steps
74 // needed to lay down one or more installed products. 73 // needed to lay down one or more installed products.
75 // 74 //
76 // setup_path: Path to the executable (setup.exe) as it will be copied 75 // setup_path: Path to the executable (setup.exe) as it will be copied
77 // to Chrome install folder after install is complete 76 // to Chrome install folder after install is complete
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // Refreshes the elevation policy on platforms where it is supported. 165 // Refreshes the elevation policy on platforms where it is supported.
167 void RefreshElevationPolicy(); 166 void RefreshElevationPolicy();
168 167
169 // Add work items to add or remove the "quick-enable-cf" to the multi-installer 168 // Add work items to add or remove the "quick-enable-cf" to the multi-installer
170 // binaries' version key on the basis of the current operation (represented in 169 // binaries' version key on the basis of the current operation (represented in
171 // |installer_state|) and the pre-existing machine configuration (represented in 170 // |installer_state|) and the pre-existing machine configuration (represented in
172 // |machine_state|). |setup_path| (the path to the executable currently being 171 // |machine_state|). |setup_path| (the path to the executable currently being
173 // run) and |new_version| (the version of the product(s) currently being 172 // run) and |new_version| (the version of the product(s) currently being
174 // installed) are required when processing product installation; they are unused 173 // installed) are required when processing product installation; they are unused
175 // (and may therefore be NULL) when uninstalling. 174 // (and may therefore be NULL) when uninstalling.
176 void AddQuickEnableWorkItems(const InstallerState& installer_state, 175 void AddQuickEnableChromeFrameWorkItems(const InstallerState& installer_state,
177 const InstallationState& machine_state, 176 const InstallationState& machine_state,
178 const FilePath* setup_path, 177 const FilePath* setup_path,
179 const Version* new_version, 178 const Version* new_version,
180 WorkItemList* work_item_list); 179 WorkItemList* work_item_list);
180
181 // Add work items to add or remove the "quick-enable-application-host" command
182 // to the multi-installer binaries' version key on the basis of the current
183 // operation (represented in |installer_state|) and the pre-existing machine
184 // configuration (represented in |machine_state|). |setup_path| (the path to
185 // the executable currently being run) and |new_version| (the version of the
186 // product(s) currently being installed) are required when processing product
187 // installation; they are unused (and may therefore be NULL) when uninstalling.
188 void AddQuickEnableApplicationHostWorkItems(
189 const InstallerState& installer_state,
190 const InstallationState& machine_state,
191 const FilePath* setup_path,
192 const Version* new_version,
193 WorkItemList* work_item_list);
181 194
182 } // namespace installer 195 } // namespace installer
183 196
184 #endif // CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_ 197 #endif // CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698