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

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

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 <stdint.h>
9
8 #include <set> 10 #include <set>
9 #include <string> 11 #include <string>
10 #include <vector> 12 #include <vector>
11 13
12 #include "base/basictypes.h"
13 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
14 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "base/macros.h"
15 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
16 #include "base/memory/scoped_vector.h" 18 #include "base/memory/scoped_vector.h"
17 #include "base/strings/string16.h" 19 #include "base/strings/string16.h"
18 #include "base/version.h" 20 #include "base/version.h"
21 #include "build/build_config.h"
19 #include "chrome/installer/util/browser_distribution.h" 22 #include "chrome/installer/util/browser_distribution.h"
20 #include "chrome/installer/util/product.h" 23 #include "chrome/installer/util/product.h"
21 #include "chrome/installer/util/util_constants.h" 24 #include "chrome/installer/util/util_constants.h"
22 25
23 #if defined(OS_WIN) 26 #if defined(OS_WIN)
24 #include <windows.h> // NOLINT 27 #include <windows.h> // NOLINT
25 #endif 28 #endif
26 29
27 namespace base { 30 namespace base {
28 class CommandLine; 31 class CommandLine;
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 // Returns true if |file| exists and cannot be opened for exclusive write 223 // Returns true if |file| exists and cannot be opened for exclusive write
221 // access. 224 // access.
222 static bool IsFileInUse(const base::FilePath& file); 225 static bool IsFileInUse(const base::FilePath& file);
223 226
224 // Clears the instance to an uninitialized state. 227 // Clears the instance to an uninitialized state.
225 void Clear(); 228 void Clear();
226 229
227 // Returns true if any file corresponding to a bit in |file_bits| (from the 230 // Returns true if any file corresponding to a bit in |file_bits| (from the
228 // enum above) for the currently installed version exists and is in use. 231 // enum above) for the currently installed version exists and is in use.
229 bool AnyExistsAndIsInUse(const InstallationState& machine_state, 232 bool AnyExistsAndIsInUse(const InstallationState& machine_state,
230 uint32 file_bits) const; 233 uint32_t file_bits) const;
231 base::FilePath GetDefaultProductInstallPath(BrowserDistribution* dist) const; 234 base::FilePath GetDefaultProductInstallPath(BrowserDistribution* dist) const;
232 bool CanAddProduct(const Product& product, 235 bool CanAddProduct(const Product& product,
233 const base::FilePath* product_dir) const; 236 const base::FilePath* product_dir) const;
234 Product* AddProductInDirectory(const base::FilePath* product_dir, 237 Product* AddProductInDirectory(const base::FilePath* product_dir,
235 scoped_ptr<Product>* product); 238 scoped_ptr<Product>* product);
236 Product* AddProductFromPreferences( 239 Product* AddProductFromPreferences(
237 BrowserDistribution::Type distribution_type, 240 BrowserDistribution::Type distribution_type,
238 const MasterPreferences& prefs, 241 const MasterPreferences& prefs,
239 const InstallationState& machine_state); 242 const InstallationState& machine_state);
240 bool IsMultiInstallUpdate(const MasterPreferences& prefs, 243 bool IsMultiInstallUpdate(const MasterPreferences& prefs,
(...skipping 26 matching lines...) Expand all
267 bool msi_; 270 bool msi_;
268 bool verbose_logging_; 271 bool verbose_logging_;
269 272
270 private: 273 private:
271 DISALLOW_COPY_AND_ASSIGN(InstallerState); 274 DISALLOW_COPY_AND_ASSIGN(InstallerState);
272 }; // class InstallerState 275 }; // class InstallerState
273 276
274 } // namespace installer 277 } // namespace installer
275 278
276 #endif // CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_ 279 #endif // CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_
OLDNEW
« no previous file with comments | « chrome/installer/util/installation_validator_unittest.cc ('k') | chrome/installer/util/installer_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698