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

Side by Side Diff: base/time/time.h

Issue 2523663002: Remove remaining base dependencies from base/numerics (Closed)
Patch Set: fix gcc compile Created 4 years, 1 month 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/numerics/safe_math.h ('k') | chromecast/media/base/media_caps.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) 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 // Time represents an absolute point in coordinated universal time (UTC), 5 // Time represents an absolute point in coordinated universal time (UTC),
6 // internally represented as microseconds (s/1,000,000) since the Windows epoch 6 // internally represented as microseconds (s/1,000,000) since the Windows epoch
7 // (1601-01-01 00:00:00 UTC). System-dependent clock interface routines are 7 // (1601-01-01 00:00:00 UTC). System-dependent clock interface routines are
8 // defined in time_PLATFORM.cc. Note that values for Time may skew and jump 8 // defined in time_PLATFORM.cc. Note that values for Time may skew and jump
9 // around as the operating system makes adjustments to synchronize (e.g., with 9 // around as the operating system makes adjustments to synchronize (e.g., with
10 // NTP servers). Thus, client code that uses the Time class must account for 10 // NTP servers). Thus, client code that uses the Time class must account for
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 #define BASE_TIME_TIME_H_ 52 #define BASE_TIME_TIME_H_
53 53
54 #include <stdint.h> 54 #include <stdint.h>
55 #include <time.h> 55 #include <time.h>
56 56
57 #include <iosfwd> 57 #include <iosfwd>
58 #include <limits> 58 #include <limits>
59 59
60 #include "base/base_export.h" 60 #include "base/base_export.h"
61 #include "base/compiler_specific.h" 61 #include "base/compiler_specific.h"
62 #include "base/logging.h"
62 #include "base/numerics/safe_math.h" 63 #include "base/numerics/safe_math.h"
63 #include "build/build_config.h" 64 #include "build/build_config.h"
64 65
65 #if defined(OS_MACOSX) 66 #if defined(OS_MACOSX)
66 #include <CoreFoundation/CoreFoundation.h> 67 #include <CoreFoundation/CoreFoundation.h>
67 // Avoid Mac system header macro leak. 68 // Avoid Mac system header macro leak.
68 #undef TYPE_BOOL 69 #undef TYPE_BOOL
69 #endif 70 #endif
70 71
71 #if defined(OS_POSIX) 72 #if defined(OS_POSIX)
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 static void WaitUntilInitializedWin(); 850 static void WaitUntilInitializedWin();
850 #endif 851 #endif
851 }; 852 };
852 853
853 // For logging use only. 854 // For logging use only.
854 BASE_EXPORT std::ostream& operator<<(std::ostream& os, ThreadTicks time_ticks); 855 BASE_EXPORT std::ostream& operator<<(std::ostream& os, ThreadTicks time_ticks);
855 856
856 } // namespace base 857 } // namespace base
857 858
858 #endif // BASE_TIME_TIME_H_ 859 #endif // BASE_TIME_TIME_H_
OLDNEW
« no previous file with comments | « base/numerics/safe_math.h ('k') | chromecast/media/base/media_caps.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698