| OLD | NEW |
| 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_MINI_INSTALLER_REGKEY_H_ | 5 #ifndef CHROME_INSTALLER_MINI_INSTALLER_REGKEY_H_ |
| 6 #define CHROME_INSTALLER_MINI_INSTALLER_REGKEY_H_ | 6 #define CHROME_INSTALLER_MINI_INSTALLER_REGKEY_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #include <stddef.h> |
| 9 | 10 |
| 10 namespace mini_installer { | 11 namespace mini_installer { |
| 11 | 12 |
| 12 // A helper class used to manipulate the Windows registry. Typically, members | 13 // A helper class used to manipulate the Windows registry. Typically, members |
| 13 // return Windows last-error codes a la Win32 registry API. | 14 // return Windows last-error codes a la Win32 registry API. |
| 14 class RegKey { | 15 class RegKey { |
| 15 public: | 16 public: |
| 16 RegKey() : key_(NULL) { } | 17 RegKey() : key_(NULL) { } |
| 17 ~RegKey() { Close(); } | 18 ~RegKey() { Close(); } |
| 18 | 19 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 57 |
| 57 | 58 |
| 58 // Helper function to get the RegKey associated with the "client state" of | 59 // Helper function to get the RegKey associated with the "client state" of |
| 59 // the given |app_guid|. | 60 // the given |app_guid|. |
| 60 bool OpenClientStateKey(HKEY root_key, const wchar_t* app_guid, | 61 bool OpenClientStateKey(HKEY root_key, const wchar_t* app_guid, |
| 61 REGSAM access, RegKey* key); | 62 REGSAM access, RegKey* key); |
| 62 | 63 |
| 63 } // namespace mini_installer | 64 } // namespace mini_installer |
| 64 | 65 |
| 65 #endif // CHROME_INSTALLER_MINI_INSTALLER_REGKEY_H_ | 66 #endif // CHROME_INSTALLER_MINI_INSTALLER_REGKEY_H_ |
| OLD | NEW |