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

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

Issue 10912096: C++ reability review for gab. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 //Pickup file for readability review.
9
8 #ifndef CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_ 10 #ifndef CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_
9 #define CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_ 11 #define CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_
10 12
11 #include <windows.h> 13 #include <windows.h>
12 14
13 #include <vector> 15 #include <vector>
14 16
15 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
16 18
17 class BrowserDistribution; 19 class BrowserDistribution;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // - Handle the case of in-use-update by updating "opv" (old version) key or 59 // - Handle the case of in-use-update by updating "opv" (old version) key or
58 // deleting it if not required. 60 // deleting it if not required.
59 // - Register any new dlls and unregister old dlls. 61 // - Register any new dlls and unregister old dlls.
60 // - If this is an MSI install, ensures that the MSI marker is set, and sets 62 // - If this is an MSI install, ensures that the MSI marker is set, and sets
61 // it if not. 63 // it if not.
62 // If these operations are successful, the function returns true, otherwise 64 // If these operations are successful, the function returns true, otherwise
63 // false. 65 // false.
64 bool AppendPostInstallTasks(const InstallerState& installer_state, 66 bool AppendPostInstallTasks(const InstallerState& installer_state,
65 const FilePath& setup_path, 67 const FilePath& setup_path,
66 const Version* current_version, 68 const Version* current_version,
67 const Version& new_version, 69 const Version& new_version,
dominich 2012/09/06 17:26:12 Please add to the documentation why current_versio
gab 2012/09/07 20:56:44 This has been a TODO on our team in a while (i.e.
68 const FilePath& temp_path, 70 const FilePath& temp_path,
69 WorkItemList* post_install_task_list); 71 WorkItemList* post_install_task_list);
70 72
71 // Builds the complete WorkItemList used to build the set of installation steps 73 // Builds the complete WorkItemList used to build the set of installation steps
72 // needed to lay down one or more installed products. 74 // needed to lay down one or more installed products.
73 // 75 //
74 // setup_path: Path to the executable (setup.exe) as it will be copied 76 // setup_path: Path to the executable (setup.exe) as it will be copied
75 // to Chrome install folder after install is complete 77 // to Chrome install folder after install is complete
76 // archive_path: Path to the archive (chrome.7z) as it will be copied 78 // archive_path: Path to the archive (chrome.7z) as it will be copied
77 // to Chrome install folder after install is complete 79 // to Chrome install folder after install is complete
78 // src_path: the path that contains a complete and unpacked Chrome package 80 // src_path: the path that contains a complete and unpacked Chrome package
79 // to be installed. 81 // to be installed.
80 // temp_path: the path of working directory used during installation. This path 82 // temp_path: the path of working directory used during installation. This path
81 // does not need to exist. 83 // does not need to exist.
82 void AddInstallWorkItems(const InstallationState& original_state, 84 void AddInstallWorkItems(const InstallationState& original_state,
83 const InstallerState& installer_state, 85 const InstallerState& installer_state,
84 const FilePath& setup_path, 86 const FilePath& setup_path,
85 const FilePath& archive_path, 87 const FilePath& archive_path,
86 const FilePath& src_path, 88 const FilePath& src_path,
87 const FilePath& temp_path, 89 const FilePath& temp_path,
88 const Version& new_version, 90 const Version& new_version,
89 scoped_ptr<Version>* current_version, 91 scoped_ptr<Version>* current_version,
dominich 2012/09/06 17:26:12 Is current_version an out parameter? If so, please
gab 2012/09/07 20:56:44 Changed all "scoped_ptr<Version>* current_version"
90 WorkItemList* install_list); 92 WorkItemList* install_list);
91 93
92 // Appends registration or unregistration work items to |work_item_list| for the 94 // Appends registration or unregistration work items to |work_item_list| for the
93 // COM DLLs whose file names are given in |dll_files| and which reside in the 95 // COM DLLs whose file names are given in |dll_files| and which reside in the
94 // path |dll_folder|. 96 // path |dll_folder|.
95 // |system_level| specifies whether to call the system or user level DLL 97 // |system_level| specifies whether to call the system or user level DLL
96 // registration entry points. 98 // registration entry points.
97 // |do_register| says whether to register or unregister. 99 // |do_register| says whether to register or unregister.
98 // |may_fail| states whether this is best effort or not. If |may_fail| is true 100 // |may_fail| states whether this is best effort or not. If |may_fail| is true
99 // then |work_item_list| will still succeed if the registration fails and 101 // then |work_item_list| will still succeed if the registration fails and
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 // installation; it is unused (and may therefore be NULL) when uninstalling. 210 // installation; it is unused (and may therefore be NULL) when uninstalling.
209 void AddOsUpgradeWorkItems(const InstallerState& installer_state, 211 void AddOsUpgradeWorkItems(const InstallerState& installer_state,
210 const FilePath* setup_path, 212 const FilePath* setup_path,
211 const Version* new_version, 213 const Version* new_version,
212 const Product& product, 214 const Product& product,
213 WorkItemList* install_list); 215 WorkItemList* install_list);
214 216
215 } // namespace installer 217 } // namespace installer
216 218
217 #endif // CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_ 219 #endif // CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/installer/setup/install_worker.cc » ('j') | chrome/installer/setup/install_worker.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698