Update V8 to version 4.6.52.
[chromium-blink-merge.git] / base / sys_info_internal.h
blobe7674d5c09fc2f9b624c018ef81d739a19e13202
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
3 // found in the LICENSE file.
5 #ifndef BASE_SYS_INFO_INTERNAL_H_
6 #define BASE_SYS_INFO_INTERNAL_H_
8 #include "base/basictypes.h"
10 namespace base {
12 namespace internal {
14 template<typename T, T (*F)(void)>
15 class LazySysInfoValue {
16 public:
17 LazySysInfoValue()
18 : value_(F()) { }
20 ~LazySysInfoValue() { }
22 T value() { return value_; }
24 private:
25 const T value_;
27 DISALLOW_COPY_AND_ASSIGN(LazySysInfoValue);
30 } // namespace internal
32 } // namespace base
34 #endif // BASE_SYS_INFO_INTERNAL_H_