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

Side by Side Diff: chrome/installer/util/installer_state.h

Issue 1121633002: win: Work on reducing number of style plugin warnings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 7 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
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 #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 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 MULTI_UPDATE, 67 MULTI_UPDATE,
68 UNINSTALL 68 UNINSTALL
69 }; 69 };
70 70
71 // Constructs an uninitialized instance; see Initialize(). 71 // Constructs an uninitialized instance; see Initialize().
72 InstallerState(); 72 InstallerState();
73 73
74 // Constructs an initialized but empty instance. 74 // Constructs an initialized but empty instance.
75 explicit InstallerState(Level level); 75 explicit InstallerState(Level level);
76 76
77 ~InstallerState();
78
77 // Initializes this object based on the current operation. 79 // Initializes this object based on the current operation.
78 void Initialize(const base::CommandLine& command_line, 80 void Initialize(const base::CommandLine& command_line,
79 const MasterPreferences& prefs, 81 const MasterPreferences& prefs,
80 const InstallationState& machine_state); 82 const InstallationState& machine_state);
81 83
82 // Adds a product constructed on the basis of |state|, setting this object's 84 // Adds a product constructed on the basis of |state|, setting this object's
83 // msi flag if |state| is msi-installed. Returns the product that was added, 85 // msi flag if |state| is msi-installed. Returns the product that was added,
84 // or NULL if |state| is incompatible with this object. Ownership is not 86 // or NULL if |state| is incompatible with this object. Ownership is not
85 // passed to the caller. 87 // passed to the caller.
86 Product* AddProductFromState(BrowserDistribution::Type type, 88 Product* AddProductFromState(BrowserDistribution::Type type,
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 bool msi_; 269 bool msi_;
268 bool verbose_logging_; 270 bool verbose_logging_;
269 271
270 private: 272 private:
271 DISALLOW_COPY_AND_ASSIGN(InstallerState); 273 DISALLOW_COPY_AND_ASSIGN(InstallerState);
272 }; // class InstallerState 274 }; // class InstallerState
273 275
274 } // namespace installer 276 } // namespace installer
275 277
276 #endif // CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_ 278 #endif // CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698