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

Side by Side 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, 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
« no previous file with comments | « src/base/platform/platform-openbsd.cc ('k') | src/base/platform/platform-posix.cc » ('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 2017 the V8 project 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 V8_BASE_PLATFORM_PLATFORM_POSIX_H_
6 #define V8_BASE_PLATFORM_PLATFORM_POSIX_H_
7
8 #include "src/base/timezone-cache.h"
9
10 namespace v8 {
11 namespace base {
12
13 class PosixTimezoneCache : public TimezoneCache {
14 public:
15 const char* LocalTimezone(double time_ms) override;
16 double DaylightSavingsOffset(double time_ms) override;
17 double LocalTimeOffset() override;
18 void Clear() override {}
19 ~PosixTimezoneCache() override {}
20
21 protected:
22 static const int msPerSecond = 1000;
23 };
24
25 } // namespace base
26 } // namespace v8
27
28 #endif // V8_BASE_PLATFORM_PLATFORM_POSIX_H_
OLDNEW
« 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