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

Side by Side Diff: chrome/browser/network_time/network_time.h

Issue 296453005: Componentize chrome/browser/network_time (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix iOS Created 6 years, 6 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 | « chrome/browser/network_time/OWNERS ('k') | chrome/browser/network_time/network_time_tracker.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #ifndef CHROME_BROWSER_NETWORK_TIME_NETWORK_TIME_H_
6 #define CHROME_BROWSER_NETWORK_TIME_NETWORK_TIME_H_
7
8 #include "base/time/time.h"
9
10 // NetworkTime is a wrapper for Time that indicates that the underlying Time
11 // object represents real (network) time. This is to force conversions (from
12 // local to network time and vice versa) to be explicit.
13 class NetworkTime {
14 public:
15 NetworkTime() {}
16 explicit NetworkTime(base::Time t) : time_internal_(t) {}
17 ~NetworkTime() {}
18
19 base::Time GetTime() const {
20 return time_internal_;
21 }
22
23 private:
24 // Network time value.
25 base::Time time_internal_;
26 };
27
28 #endif // CHROME_BROWSER_NETWORK_TIME_NETWORK_TIME_H_
OLDNEW
« no previous file with comments | « chrome/browser/network_time/OWNERS ('k') | chrome/browser/network_time/network_time_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698