diff options
Diffstat (limited to 'chrome/browser/network_time/network_time.h')
-rw-r--r-- | chrome/browser/network_time/network_time.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/chrome/browser/network_time/network_time.h b/chrome/browser/network_time/network_time.h deleted file mode 100644 index 90d5a93..0000000 --- a/chrome/browser/network_time/network_time.h +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright 2013 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef CHROME_BROWSER_NETWORK_TIME_NETWORK_TIME_H_ -#define CHROME_BROWSER_NETWORK_TIME_NETWORK_TIME_H_ - -#include "base/time/time.h" - -// NetworkTime is a wrapper for Time that indicates that the underlying Time -// object represents real (network) time. This is to force conversions (from -// local to network time and vice versa) to be explicit. -class NetworkTime { - public: - NetworkTime() {} - explicit NetworkTime(base::Time t) : time_internal_(t) {} - ~NetworkTime() {} - - base::Time GetTime() const { - return time_internal_; - } - - private: - // Network time value. - base::Time time_internal_; -}; - -#endif // CHROME_BROWSER_NETWORK_TIME_NETWORK_TIME_H_ |