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

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

Issue 209343003: Remove prtypes.h and prcpucfg*.h from base/third_party/nspr. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Move chromium-blapi*h to NaCl HMAC sources Created 6 years, 9 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
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 #include "base/time/time.h" 5 #include "base/time/time.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <ostream> 8 #include <ostream>
9 9
10 #include "base/float_util.h" 10 #include "base/float_util.h"
11 #include "base/lazy_instance.h" 11 #include "base/lazy_instance.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/third_party/nspr/prtime.h" 13 #include "base/third_party/nspr/prtime.h"
14 #include "base/third_party/nspr/prtypes.h"
15 14
16 namespace base { 15 namespace base {
17 16
18 // TimeDelta ------------------------------------------------------------------ 17 // TimeDelta ------------------------------------------------------------------
19 18
20 // static 19 // static
21 TimeDelta TimeDelta::Max() { 20 TimeDelta TimeDelta::Max() {
22 return TimeDelta(std::numeric_limits<int64>::max()); 21 return TimeDelta(std::numeric_limits<int64>::max());
23 } 22 }
24 23
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 return is_in_range(month, 1, 12) && 263 return is_in_range(month, 1, 12) &&
265 is_in_range(day_of_week, 0, 6) && 264 is_in_range(day_of_week, 0, 6) &&
266 is_in_range(day_of_month, 1, 31) && 265 is_in_range(day_of_month, 1, 31) &&
267 is_in_range(hour, 0, 23) && 266 is_in_range(hour, 0, 23) &&
268 is_in_range(minute, 0, 59) && 267 is_in_range(minute, 0, 59) &&
269 is_in_range(second, 0, 60) && 268 is_in_range(second, 0, 60) &&
270 is_in_range(millisecond, 0, 999); 269 is_in_range(millisecond, 0, 999);
271 } 270 }
272 271
273 } // namespace base 272 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698