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

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

Issue 120963002: Use a Finch Experiment to control the Browser Blacklist (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Responding to comments Created 6 years, 11 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 | « no previous file | chrome/browser/DEPS » ('j') | chrome/browser/chrome_elf_init_win.h » ('J')
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 <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // Replaces the handle of the registry key and takes ownership of the handle. 50 // Replaces the handle of the registry key and takes ownership of the handle.
51 void Set(HKEY key); 51 void Set(HKEY key);
52 52
53 // Transfers ownership away from this object. 53 // Transfers ownership away from this object.
54 HKEY Take(); 54 HKEY Take();
55 55
56 // Returns false if this key does not have the specified value, of if an error 56 // Returns false if this key does not have the specified value, of if an error
57 // occurrs while attempting to access it. 57 // occurrs while attempting to access it.
58 bool HasValue(const wchar_t* value_name) const; 58 bool HasValue(const wchar_t* value_name) const;
59 59
60 // Returns the number of values for this key, of 0 if the number cannot be 60 // Returns the number of values for this key, or 0 if the number cannot be
robertshield 2014/01/02 20:42:22 recommend extracting this change into its own CL a
csharp 2014/01/02 21:57:59 Done.
61 // determined. 61 // determined.
62 DWORD GetValueCount() const; 62 DWORD GetValueCount() const;
63 63
64 // Determine the nth value's name. 64 // Determine the nth value's name.
65 LONG GetValueNameAt(int index, std::wstring* name) const; 65 LONG GetValueNameAt(int index, std::wstring* name) const;
66 66
67 // True while the key is valid. 67 // True while the key is valid.
68 bool Valid() const { return key_ != NULL; } 68 bool Valid() const { return key_ != NULL; }
69 69
70 // Kill a key and everything that live below it; please be careful when using 70 // Kill a key and everything that live below it; please be careful when using
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 210
211 wchar_t name_[MAX_PATH]; 211 wchar_t name_[MAX_PATH];
212 212
213 DISALLOW_COPY_AND_ASSIGN(RegistryKeyIterator); 213 DISALLOW_COPY_AND_ASSIGN(RegistryKeyIterator);
214 }; 214 };
215 215
216 } // namespace win 216 } // namespace win
217 } // namespace base 217 } // namespace base
218 218
219 #endif // BASE_WIN_REGISTRY_H_ 219 #endif // BASE_WIN_REGISTRY_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/DEPS » ('j') | chrome/browser/chrome_elf_init_win.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698