diff options
author | michaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-12 01:14:58 +0000 |
---|---|---|
committer | michaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-12 01:14:58 +0000 |
commit | 2e2a5404a58ae577ebfa65e6f7575eec8cd393cf (patch) | |
tree | 3fc7dfe6b7da820cc05319f17c4316c54151385e /webkit/api | |
parent | 5d56ba000c0f51a91632708a27cb25367120a61d (diff) | |
download | chromium_src-2e2a5404a58ae577ebfa65e6f7575eec8cd393cf.zip chromium_src-2e2a5404a58ae577ebfa65e6f7575eec8cd393cf.tar.gz chromium_src-2e2a5404a58ae577ebfa65e6f7575eec8cd393cf.tar.bz2 |
Adds a command line switch to enable the appcache, and plumb the switch throughto preferences and webcore settings.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/164306
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23135 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/api')
-rw-r--r-- | webkit/api/public/WebSettings.h | 1 | ||||
-rw-r--r-- | webkit/api/src/WebSettingsImpl.cpp | 5 | ||||
-rw-r--r-- | webkit/api/src/WebSettingsImpl.h | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/webkit/api/public/WebSettings.h b/webkit/api/public/WebSettings.h index d0af35e..166b396 100644 --- a/webkit/api/public/WebSettings.h +++ b/webkit/api/public/WebSettings.h @@ -78,6 +78,7 @@ namespace WebKit { virtual void setDatabasesEnabled(bool) = 0; virtual void setAllowUniversalAccessFromFileURLs(bool) = 0; virtual void setTextDirectionSubmenuInclusionBehaviorNeverIncluded() = 0; + virtual void setOfflineWebApplicationCacheEnabled(bool) = 0; protected: ~WebSettings() { } diff --git a/webkit/api/src/WebSettingsImpl.cpp b/webkit/api/src/WebSettingsImpl.cpp index b873aff..948f80c 100644 --- a/webkit/api/src/WebSettingsImpl.cpp +++ b/webkit/api/src/WebSettingsImpl.cpp @@ -230,4 +230,9 @@ void WebSettingsImpl::setTextDirectionSubmenuInclusionBehaviorNeverIncluded() m_settings->setTextDirectionSubmenuInclusionBehavior(WebCore::TextDirectionSubmenuNeverIncluded); } +void WebSettingsImpl::setOfflineWebApplicationCacheEnabled(bool allow) +{ + m_settings->setOfflineWebApplicationCacheEnabled(allow); +} + } // namespace WebKit diff --git a/webkit/api/src/WebSettingsImpl.h b/webkit/api/src/WebSettingsImpl.h index 79882d2..7d15ac7 100644 --- a/webkit/api/src/WebSettingsImpl.h +++ b/webkit/api/src/WebSettingsImpl.h @@ -80,6 +80,7 @@ namespace WebKit { virtual void setDatabasesEnabled(bool); virtual void setAllowUniversalAccessFromFileURLs(bool); virtual void setTextDirectionSubmenuInclusionBehaviorNeverIncluded(); + virtual void setOfflineWebApplicationCacheEnabled(bool); private: WebCore::Settings* m_settings; |