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

Unified Diff: src/base/platform/platform-posix.h

Issue 2731463003: [date] Refactor TimezoneCache to be separate from the OS (Closed)
Patch Set: Properly reference windows function Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/base/platform/platform-openbsd.cc ('k') | src/base/platform/platform-posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/base/platform/platform-posix.h
diff --git a/src/base/platform/platform-posix.h b/src/base/platform/platform-posix.h
new file mode 100644
index 0000000000000000000000000000000000000000..c243a723c1a31bdf0372d9afe95d09d36c1be82a
--- /dev/null
+++ b/src/base/platform/platform-posix.h
@@ -0,0 +1,28 @@
+// Copyright 2017 the V8 project 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 V8_BASE_PLATFORM_PLATFORM_POSIX_H_
+#define V8_BASE_PLATFORM_PLATFORM_POSIX_H_
+
+#include "src/base/timezone-cache.h"
+
+namespace v8 {
+namespace base {
+
+class PosixTimezoneCache : public TimezoneCache {
+ public:
+ const char* LocalTimezone(double time_ms) override;
+ double DaylightSavingsOffset(double time_ms) override;
+ double LocalTimeOffset() override;
+ void Clear() override {}
+ ~PosixTimezoneCache() override {}
+
+ protected:
+ static const int msPerSecond = 1000;
+};
+
+} // namespace base
+} // namespace v8
+
+#endif // V8_BASE_PLATFORM_PLATFORM_POSIX_H_
« no previous file with comments | « src/base/platform/platform-openbsd.cc ('k') | src/base/platform/platform-posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698