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

Side by Side Diff: base/win/registry.h

Issue 1852433005: Convert //base to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase after r384946 Created 4 years, 8 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
« no previous file with comments | « base/win/enum_variant.h ('k') | base/win/scoped_comptr_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 BASE_WIN_REGISTRY_H_ 5 #ifndef BASE_WIN_REGISTRY_H_
6 #define BASE_WIN_REGISTRY_H_ 6 #define BASE_WIN_REGISTRY_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <string> 10 #include <string>
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 REGSAM samDesired, 142 REGSAM samDesired,
143 DWORD Reserved); 143 DWORD Reserved);
144 144
145 // Recursively deletes a key and all of its subkeys. 145 // Recursively deletes a key and all of its subkeys.
146 static LONG RegDelRecurse(HKEY root_key, 146 static LONG RegDelRecurse(HKEY root_key,
147 const std::wstring& name, 147 const std::wstring& name,
148 REGSAM access); 148 REGSAM access);
149 149
150 HKEY key_; // The registry key being iterated. 150 HKEY key_; // The registry key being iterated.
151 REGSAM wow64access_; 151 REGSAM wow64access_;
152 scoped_ptr<Watcher> key_watcher_; 152 std::unique_ptr<Watcher> key_watcher_;
153 153
154 DISALLOW_COPY_AND_ASSIGN(RegKey); 154 DISALLOW_COPY_AND_ASSIGN(RegKey);
155 }; 155 };
156 156
157 // Iterates the entries found in a particular folder on the registry. 157 // Iterates the entries found in a particular folder on the registry.
158 class BASE_EXPORT RegistryValueIterator { 158 class BASE_EXPORT RegistryValueIterator {
159 public: 159 public:
160 // Construct a Registry Value Iterator with default WOW64 access. 160 // Construct a Registry Value Iterator with default WOW64 access.
161 RegistryValueIterator(HKEY root_key, const wchar_t* folder_key); 161 RegistryValueIterator(HKEY root_key, const wchar_t* folder_key);
162 162
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 250
251 wchar_t name_[MAX_PATH]; 251 wchar_t name_[MAX_PATH];
252 252
253 DISALLOW_COPY_AND_ASSIGN(RegistryKeyIterator); 253 DISALLOW_COPY_AND_ASSIGN(RegistryKeyIterator);
254 }; 254 };
255 255
256 } // namespace win 256 } // namespace win
257 } // namespace base 257 } // namespace base
258 258
259 #endif // BASE_WIN_REGISTRY_H_ 259 #endif // BASE_WIN_REGISTRY_H_
OLDNEW
« no previous file with comments | « base/win/enum_variant.h ('k') | base/win/scoped_comptr_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698