summaryrefslogtreecommitdiffstats
path: root/content/renderer/render_thread_impl.h
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-13 18:18:30 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-13 18:18:30 +0000
commitdf9accd1803cefe3852bf7967d3349e5142af79e (patch)
treea5971ebc1fd6b461060db05b31dfc798119bcd44 /content/renderer/render_thread_impl.h
parent22a9e96e4a113611ab6f6e520a5c0484aa5ad843 (diff)
downloadchromium_src-df9accd1803cefe3852bf7967d3349e5142af79e.zip
chromium_src-df9accd1803cefe3852bf7967d3349e5142af79e.tar.gz
chromium_src-df9accd1803cefe3852bf7967d3349e5142af79e.tar.bz2
Notify the entire renderer of timezone changes instead of each frame individually
The timezone cache in v8 is a global property, so we shouldn't have to clear it several times. BUG=348856 R=tsepez@chromium.org,marja@chromium.org,kalman@chromium.org Review URL: https://codereview.chromium.org/194643003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256876 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/render_thread_impl.h')
-rw-r--r--content/renderer/render_thread_impl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/content/renderer/render_thread_impl.h b/content/renderer/render_thread_impl.h
index abace7f..192cb8a8 100644
--- a/content/renderer/render_thread_impl.h
+++ b/content/renderer/render_thread_impl.h
@@ -121,6 +121,10 @@ class CONTENT_EXPORT RenderThreadImpl : public RenderThread,
// module are registered properly. Static to allow sharing with tests.
static void RegisterSchemes();
+ // Notify V8 that the date/time configuration of the system might have
+ // changed.
+ static void NotifyTimezoneChange();
+
// RenderThread implementation:
virtual bool Send(IPC::Message* msg) OVERRIDE;
virtual base::MessageLoop* GetMessageLoop() OVERRIDE;
@@ -402,6 +406,7 @@ class CONTENT_EXPORT RenderThreadImpl : public RenderThread,
void OnNetworkStateChanged(bool online);
void OnGetAccessibilityTree();
void OnTempCrashWithData(const GURL& data);
+ void OnUpdateTimezone();
void OnMemoryPressure(
base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level);
#if defined(OS_ANDROID)