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

Side by Side Diff: chrome/installer/util/installer_state.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) 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 #ifndef CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_ 5 #ifndef CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_
6 #define CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_ 6 #define CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 20 matching lines...) Expand all
31 class ChannelInfo; 31 class ChannelInfo;
32 class InstallationState; 32 class InstallationState;
33 class MasterPreferences; 33 class MasterPreferences;
34 34
35 class ProductState; 35 class ProductState;
36 36
37 typedef std::vector<Product*> Products; 37 typedef std::vector<Product*> Products;
38 38
39 // Encapsulates the state of the current installation operation. Only valid 39 // Encapsulates the state of the current installation operation. Only valid
40 // for installs and upgrades (not for uninstalls or non-install commands). 40 // for installs and upgrades (not for uninstalls or non-install commands).
41 // This class interprets the command-line arguments and master preferences and
42 // determines the operations to be performed. For example, the Chrome Binaries
43 // are automatically added if required in multi-install mode.
44 // TODO(erikwright): This is now used a fair bit during uninstall, and
45 // InstallerState::Initialize() contains a lot of code for uninstall. The class
46 // comment should probably be updated.
41 // TODO(grt): Rename to InstallerEngine/Conductor or somesuch? 47 // TODO(grt): Rename to InstallerEngine/Conductor or somesuch?
42 class InstallerState { 48 class InstallerState {
43 public: 49 public:
44 enum Level { 50 enum Level {
45 UNKNOWN_LEVEL, 51 UNKNOWN_LEVEL,
46 USER_LEVEL, 52 USER_LEVEL,
47 SYSTEM_LEVEL 53 SYSTEM_LEVEL
48 }; 54 };
49 55
50 enum PackageType { 56 enum PackageType {
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 bool msi_; 235 bool msi_;
230 bool verbose_logging_; 236 bool verbose_logging_;
231 237
232 private: 238 private:
233 DISALLOW_COPY_AND_ASSIGN(InstallerState); 239 DISALLOW_COPY_AND_ASSIGN(InstallerState);
234 }; // class InstallerState 240 }; // class InstallerState
235 241
236 } // namespace installer 242 } // namespace installer
237 243
238 #endif // CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_ 244 #endif // CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698