Chromium Code Reviews| 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 scoped_ptr<KeyData> key_data_; | 52 scoped_ptr<KeyData> key_data_; |
|
Yash
2011/10/03 02:17:37
Please add a quick comment for this member.
grt (UTC plus 2)
2011/10/03 15:35:26
Done.
| |
| 53 | 53 |
| 54 DISALLOW_COPY_AND_ASSIGN(RegistryKeyBackup); | 54 DISALLOW_COPY_AND_ASSIGN(RegistryKeyBackup); |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 #endif // CHROME_INSTALLER_UTIL_REGISTRY_KEY_BACKUP_H_ | 57 #endif // CHROME_INSTALLER_UTIL_REGISTRY_KEY_BACKUP_H_ |
| 58 | |
| OLD | NEW |