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

Side by Side Diff: base/sys_info_internal.h

Issue 1538743002: Switch to standard integer types in base/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DEPS roll too Created 4 years, 12 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/sys_info_freebsd.cc ('k') | base/sys_info_ios.mm » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SYS_INFO_INTERNAL_H_ 5 #ifndef BASE_SYS_INFO_INTERNAL_H_
6 #define BASE_SYS_INFO_INTERNAL_H_ 6 #define BASE_SYS_INFO_INTERNAL_H_
7 7
8 #include "base/macros.h"
9
8 namespace base { 10 namespace base {
9 11
10 namespace internal { 12 namespace internal {
11 13
12 template<typename T, T (*F)(void)> 14 template<typename T, T (*F)(void)>
13 class LazySysInfoValue { 15 class LazySysInfoValue {
14 public: 16 public:
15 LazySysInfoValue() 17 LazySysInfoValue()
16 : value_(F()) { } 18 : value_(F()) { }
17 19
18 ~LazySysInfoValue() { } 20 ~LazySysInfoValue() { }
19 21
20 T value() { return value_; } 22 T value() { return value_; }
21 23
22 private: 24 private:
23 const T value_; 25 const T value_;
24 26
25 DISALLOW_COPY_AND_ASSIGN(LazySysInfoValue); 27 DISALLOW_COPY_AND_ASSIGN(LazySysInfoValue);
26 }; 28 };
27 29
28 } // namespace internal 30 } // namespace internal
29 31
30 } // namespace base 32 } // namespace base
31 33
32 #endif // BASE_SYS_INFO_INTERNAL_H_ 34 #endif // BASE_SYS_INFO_INTERNAL_H_
OLDNEW
« no previous file with comments | « base/sys_info_freebsd.cc ('k') | base/sys_info_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698