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

Side by Side Diff: base/time.h

Issue 42189: Remove unneeded includes of gtest_prod.h. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « no previous file | chrome/browser/history/in_memory_history_backend.h » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 time, internally represented as 5 // Time represents an absolute point in time, internally represented as
6 // microseconds (s/1,000,000) since a platform-dependent epoch. Each 6 // microseconds (s/1,000,000) since a platform-dependent epoch. Each
7 // platform's epoch, along with other system-dependent clock interface 7 // platform's epoch, along with other system-dependent clock interface
8 // routines, is defined in time_PLATFORM.cc. 8 // routines, is defined in time_PLATFORM.cc.
9 // 9 //
10 // TimeDelta represents a duration of time, internally represented in 10 // TimeDelta represents a duration of time, internally represented in
11 // microseconds. 11 // microseconds.
12 // 12 //
13 // TimeTicks represents an abstract time that is always incrementing for use 13 // TimeTicks represents an abstract time that is always incrementing for use
14 // in measuring time durations. It is internally represented in microseconds. 14 // in measuring time durations. It is internally represented in microseconds.
15 // It can not be converted to a human-readable time, but is guaranteed not to 15 // It can not be converted to a human-readable time, but is guaranteed not to
16 // decrease (if the user changes the computer clock, Time::Now() may actually 16 // decrease (if the user changes the computer clock, Time::Now() may actually
17 // decrease or jump). 17 // decrease or jump).
18 // 18 //
19 // These classes are represented as only a 64-bit value, so they can be 19 // These classes are represented as only a 64-bit value, so they can be
20 // efficiently passed by value. 20 // efficiently passed by value.
21 21
22 #ifndef BASE_TIME_H_ 22 #ifndef BASE_TIME_H_
23 #define BASE_TIME_H_ 23 #define BASE_TIME_H_
24 24
25 #include <time.h> 25 #include <time.h>
26 26
27 #include "base/basictypes.h" 27 #include "base/basictypes.h"
28 #include "testing/gtest/include/gtest/gtest_prod.h"
29 28
30 #if defined(OS_WIN) 29 #if defined(OS_WIN)
31 // For FILETIME in FromFileTime, until it moves to a new converter class. 30 // For FILETIME in FromFileTime, until it moves to a new converter class.
32 // See TODO(iyengar) below. 31 // See TODO(iyengar) below.
33 #include <windows.h> 32 #include <windows.h>
34 #endif 33 #endif
35 34
36 namespace base { 35 namespace base {
37 36
38 class Time; 37 class Time;
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 #endif 467 #endif
469 }; 468 };
470 469
471 inline TimeTicks TimeDelta::operator+(TimeTicks t) const { 470 inline TimeTicks TimeDelta::operator+(TimeTicks t) const {
472 return TimeTicks(t.ticks_ + delta_); 471 return TimeTicks(t.ticks_ + delta_);
473 } 472 }
474 473
475 } // namespace base 474 } // namespace base
476 475
477 #endif // BASE_TIME_H_ 476 #endif // BASE_TIME_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/history/in_memory_history_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698