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

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

Issue 3836005: Move pe_image and registry from base to base/win and use the namespace. It re... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « base/win/pe_image_unittest.cc ('k') | base/win/registry.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_REGISTRY_H_ 5 #ifndef BASE_WIN_REGISTRY_H_
6 #define BASE_REGISTRY_H_ 6 #define BASE_WIN_REGISTRY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <windows.h> 9 #include <windows.h>
10 #include <string> 10 #include <string>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 13
14 namespace base {
15 namespace win {
16
14 // Utility class to read, write and manipulate the Windows Registry. 17 // Utility class to read, write and manipulate the Windows Registry.
15 // Registry vocabulary primer: a "key" is like a folder, in which there 18 // Registry vocabulary primer: a "key" is like a folder, in which there
16 // are "values", which are <name, data> pairs, with an associated data type. 19 // are "values", which are <name, data> pairs, with an associated data type.
17 class RegKey { 20 class RegKey {
18 public: 21 public:
19 RegKey(); 22 RegKey();
20 RegKey(HKEY rootkey, const wchar_t* subkey, REGSAM access); 23 RegKey(HKEY rootkey, const wchar_t* subkey, REGSAM access);
21 ~RegKey(); 24 ~RegKey();
22 25
23 bool Create(HKEY rootkey, const wchar_t* subkey, REGSAM access); 26 bool Create(HKEY rootkey, const wchar_t* subkey, REGSAM access);
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 HKEY key_; 158 HKEY key_;
156 159
157 // Current index of the iteration. 160 // Current index of the iteration.
158 int index_; 161 int index_;
159 162
160 wchar_t name_[MAX_PATH]; 163 wchar_t name_[MAX_PATH];
161 164
162 DISALLOW_COPY_AND_ASSIGN(RegistryKeyIterator); 165 DISALLOW_COPY_AND_ASSIGN(RegistryKeyIterator);
163 }; 166 };
164 167
165 #endif // BASE_REGISTRY_H_ 168 } // namespace win
169 } // namespace base
170
171 #endif // BASE_WIN_REGISTRY_H_
OLDNEW
« no previous file with comments | « base/win/pe_image_unittest.cc ('k') | base/win/registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698