OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2003 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2003 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 // Registry configuration wrappers class | 11 // Registry configuration wrappers class |
12 // | 12 // |
13 // Offers static functions for convenient | 13 // Offers static functions for convenient |
14 // fast access for individual values | 14 // fast access for individual values |
15 // | 15 // |
16 // Also provides a wrapper class for efficient | 16 // Also provides a wrapper class for efficient |
17 // batch operations on values of a given registry key. | 17 // batch operations on values of a given registry key. |
18 // | 18 // |
19 | 19 |
20 #ifndef WEBRTC_BASE_WIN32REGKEY_H_ | 20 #ifndef WEBRTC_BASE_WIN32REGKEY_H_ |
21 #define WEBRTC_BASE_WIN32REGKEY_H_ | 21 #define WEBRTC_BASE_WIN32REGKEY_H_ |
22 | 22 |
23 #include <string> | 23 #include <string> |
24 #include <vector> | 24 #include <vector> |
25 | 25 |
26 #include "webrtc/base/basictypes.h" | 26 #include "webrtc/base/basictypes.h" |
| 27 #include "webrtc/base/constructormagic.h" |
27 #include "webrtc/base/win32.h" | 28 #include "webrtc/base/win32.h" |
28 | 29 |
29 namespace rtc { | 30 namespace rtc { |
30 | 31 |
31 // maximum sizes registry key and value names | 32 // maximum sizes registry key and value names |
32 const int kMaxKeyNameChars = 255 + 1; | 33 const int kMaxKeyNameChars = 255 + 1; |
33 const int kMaxValueNameChars = 16383 + 1; | 34 const int kMaxValueNameChars = 16383 + 1; |
34 | 35 |
35 class RegKey { | 36 class RegKey { |
36 public: | 37 public: |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 | 329 |
329 // for unittest | 330 // for unittest |
330 friend void RegKeyHelperFunctionsTest(); | 331 friend void RegKeyHelperFunctionsTest(); |
331 | 332 |
332 RTC_DISALLOW_COPY_AND_ASSIGN(RegKey); | 333 RTC_DISALLOW_COPY_AND_ASSIGN(RegKey); |
333 }; | 334 }; |
334 | 335 |
335 } // namespace rtc | 336 } // namespace rtc |
336 | 337 |
337 #endif // WEBRTC_BASE_WIN32REGKEY_H_ | 338 #endif // WEBRTC_BASE_WIN32REGKEY_H_ |
OLD | NEW |