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

Side by Side Diff: chrome/installer/util/installation_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_INSTALLATION_STATE_H_ 5 #ifndef CHROME_INSTALLER_UTIL_INSTALLATION_STATE_H_
6 #define CHROME_INSTALLER_UTIL_INSTALLATION_STATE_H_ 6 #define CHROME_INSTALLER_UTIL_INSTALLATION_STATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 14 matching lines...) Expand all
25 namespace installer { 25 namespace installer {
26 26
27 class InstallationState; 27 class InstallationState;
28 28
29 // A representation of a product's state on the machine based on the contents 29 // A representation of a product's state on the machine based on the contents
30 // of the Windows registry. 30 // of the Windows registry.
31 // TODO(grt): Pull this out into its own file. 31 // TODO(grt): Pull this out into its own file.
32 class ProductState { 32 class ProductState {
33 public: 33 public:
34 ProductState(); 34 ProductState();
35 ~ProductState();
35 36
36 // Returns true if the product is installed (i.e., the product's Clients key 37 // Returns true if the product is installed (i.e., the product's Clients key
37 // exists and has a "pv" value); false otherwise. 38 // exists and has a "pv" value); false otherwise.
38 bool Initialize(bool system_install, 39 bool Initialize(bool system_install,
39 BrowserDistribution::Type type); 40 BrowserDistribution::Type type);
40 bool Initialize(bool system_install, 41 bool Initialize(bool system_install,
41 BrowserDistribution* distribution); 42 BrowserDistribution* distribution);
42 43
43 // Returns the product's channel info (i.e., the Google Update "ap" value). 44 // Returns the product's channel info (i.e., the Google Update "ap" value).
44 const ChannelInfo& channel() const { return channel_; } 45 const ChannelInfo& channel() const { return channel_; }
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 ProductState user_products_[NUM_PRODUCTS]; 163 ProductState user_products_[NUM_PRODUCTS];
163 ProductState system_products_[NUM_PRODUCTS]; 164 ProductState system_products_[NUM_PRODUCTS];
164 165
165 private: 166 private:
166 DISALLOW_COPY_AND_ASSIGN(InstallationState); 167 DISALLOW_COPY_AND_ASSIGN(InstallationState);
167 }; // class InstallationState 168 }; // class InstallationState
168 169
169 } // namespace installer 170 } // namespace installer
170 171
171 #endif // CHROME_INSTALLER_UTIL_INSTALLATION_STATE_H_ 172 #endif // CHROME_INSTALLER_UTIL_INSTALLATION_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698