OLD | NEW |
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_REGISTRY_KEY_BACKUP_H_ | 5 #ifndef CHROME_INSTALLER_UTIL_REGISTRY_KEY_BACKUP_H_ |
6 #define CHROME_INSTALLER_UTIL_REGISTRY_KEY_BACKUP_H_ | 6 #define CHROME_INSTALLER_UTIL_REGISTRY_KEY_BACKUP_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <windows.h> | 9 #include <windows.h> |
10 | 10 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 // initialized from a non-existent key. | 42 // initialized from a non-existent key. |
43 bool WriteTo(HKEY root, const wchar_t* key_path) const; | 43 bool WriteTo(HKEY root, const wchar_t* key_path) const; |
44 | 44 |
45 void swap(RegistryKeyBackup& other) { | 45 void swap(RegistryKeyBackup& other) { |
46 key_data_.swap(other.key_data_); | 46 key_data_.swap(other.key_data_); |
47 } | 47 } |
48 | 48 |
49 private: | 49 private: |
50 class KeyData; | 50 class KeyData; |
51 | 51 |
| 52 // The values and subkeys of the backed-up key. |
52 scoped_ptr<KeyData> key_data_; | 53 scoped_ptr<KeyData> key_data_; |
53 | 54 |
54 DISALLOW_COPY_AND_ASSIGN(RegistryKeyBackup); | 55 DISALLOW_COPY_AND_ASSIGN(RegistryKeyBackup); |
55 }; | 56 }; |
56 | 57 |
57 #endif // CHROME_INSTALLER_UTIL_REGISTRY_KEY_BACKUP_H_ | 58 #endif // CHROME_INSTALLER_UTIL_REGISTRY_KEY_BACKUP_H_ |
OLD | NEW |