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

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

Issue 8511053: Cleanup: Remove unneeded forward declarations in chrome/installer. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
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
11 #include <string> 11 #include <algorithm>
grt (UTC plus 2) 2011/11/11 14:48:42 This isn't needed.
Lei Zhang 2011/11/11 19:50:53 Removed, gcl lint fail.
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 15
16 namespace base {
17 namespace win {
18 class RegKey;
19 } // namespace win
20 } // namespace base
21
22 // A container for a registry key, its values, and its subkeys. We don't use 16 // A container for a registry key, its values, and its subkeys. We don't use
23 // more obvious methods for various reasons: 17 // more obvious methods for various reasons:
24 // - RegCopyTree isn't supported pre-Vista, so we'd have to do something 18 // - RegCopyTree isn't supported pre-Vista, so we'd have to do something
25 // different for XP anyway. 19 // different for XP anyway.
26 // - SHCopyKey can't copy subkeys into a volatile destination, so we'd have to 20 // - SHCopyKey can't copy subkeys into a volatile destination, so we'd have to
27 // worry about polluting the registry. 21 // worry about polluting the registry.
28 // We don't persist security attributes since we only delete keys that we own, 22 // We don't persist security attributes since we only delete keys that we own,
29 // and we don't set custom attributes on them anyway. 23 // and we don't set custom attributes on them anyway.
30 class RegistryKeyBackup { 24 class RegistryKeyBackup {
31 public: 25 public:
(...skipping 17 matching lines...) Expand all
49 private: 43 private:
50 class KeyData; 44 class KeyData;
51 45
52 // The values and subkeys of the backed-up key. 46 // The values and subkeys of the backed-up key.
53 scoped_ptr<KeyData> key_data_; 47 scoped_ptr<KeyData> key_data_;
54 48
55 DISALLOW_COPY_AND_ASSIGN(RegistryKeyBackup); 49 DISALLOW_COPY_AND_ASSIGN(RegistryKeyBackup);
56 }; 50 };
57 51
58 #endif // CHROME_INSTALLER_UTIL_REGISTRY_KEY_BACKUP_H_ 52 #endif // CHROME_INSTALLER_UTIL_REGISTRY_KEY_BACKUP_H_
OLDNEW
« chrome/installer/util/product.h ('K') | « chrome/installer/util/product.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698