summaryrefslogtreecommitdiffstats
path: root/webkit/api/src/WebRuntimeFeatures.cpp
diff options
context:
space:
mode:
authorjennb@chromium.org <jennb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-07 01:17:14 +0000
committerjennb@chromium.org <jennb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-07 01:17:14 +0000
commit13bc0d82bd5c294a7e67a8ab61e07dc01c170a27 (patch)
treea83773c3dc362682f5425e698854c2a841d9f96a /webkit/api/src/WebRuntimeFeatures.cpp
parente60b6496879d9ab8a58abf998bfbd02aab834aba (diff)
downloadchromium_src-13bc0d82bd5c294a7e67a8ab61e07dc01c170a27.zip
chromium_src-13bc0d82bd5c294a7e67a8ab61e07dc01c170a27.tar.gz
chromium_src-13bc0d82bd5c294a7e67a8ab61e07dc01c170a27.tar.bz2
Change application cache cmd line enabling to use the new RuntimeEnabledFeatures code.
TEST=none BUG=none Review URL: http://codereview.chromium.org/377002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31349 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/api/src/WebRuntimeFeatures.cpp')
-rw-r--r--webkit/api/src/WebRuntimeFeatures.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/webkit/api/src/WebRuntimeFeatures.cpp b/webkit/api/src/WebRuntimeFeatures.cpp
index b3d3ff6..b630a09 100644
--- a/webkit/api/src/WebRuntimeFeatures.cpp
+++ b/webkit/api/src/WebRuntimeFeatures.cpp
@@ -135,4 +135,20 @@ bool WebRuntimeFeatures::isNotificationsEnabled()
#endif
}
+void WebRuntimeFeatures::enableApplicationCache(bool enable)
+{
+#if ENABLE(OFFLINE_WEB_APPLICATIONS)
+ RuntimeEnabledFeatures::setApplicationCacheEnabled(enable);
+#endif
+}
+
+bool WebRuntimeFeatures::isApplicationCacheEnabled()
+{
+#if ENABLE(OFFLINE_WEB_APPLICATIONS)
+ return RuntimeEnabledFeatures::applicationCacheEnabled();
+#else
+ return false;
+#endif
+}
+
} // namespace WebKit