diff options
author | jorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-18 17:02:08 +0000 |
---|---|---|
committer | jorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-18 17:02:08 +0000 |
commit | 109607461c875c18217b2c3624a060945f11daea (patch) | |
tree | a13e520003dffb6079c762c20ebddd5a4d4b8640 /webkit/glue | |
parent | 07958334a979f0049e4d2baf44da70a9a4f1aaff (diff) | |
download | chromium_src-109607461c875c18217b2c3624a060945f11daea.zip chromium_src-109607461c875c18217b2c3624a060945f11daea.tar.gz chromium_src-109607461c875c18217b2c3624a060945f11daea.tar.bz2 |
Enable DOM_STORAGE in our build. Put LocalStorage and SessionStorage behind their own flags. Add the beginnings of StorageNamespaceProxy since it implements WebCore::StorageNamespace::____StorageNamespace and we'd get link errors otherwise.
--enable-local-storage and --enable-session-storage are the new flags. If you enable them and try to use DOM Storage, Chromium will crash.
BUG=4360
TEST=none
Review URL: http://codereview.chromium.org/149792
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21059 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue')
-rw-r--r-- | webkit/glue/webpreferences.h | 4 | ||||
-rw-r--r-- | webkit/glue/webview_impl.cc | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/webkit/glue/webpreferences.h b/webkit/glue/webpreferences.h index d75138a..dd0581e 100644 --- a/webkit/glue/webpreferences.h +++ b/webkit/glue/webpreferences.h @@ -42,6 +42,8 @@ struct WebPreferences { bool uses_page_cache; bool remote_fonts_enabled; bool xss_auditor_enabled; + bool local_storage_enabled; + bool session_storage_enabled; // TODO(tc): User style sheets will not work in chrome because it tries to // load the style sheet using a request without a frame. @@ -79,6 +81,8 @@ struct WebPreferences { uses_page_cache(false), remote_fonts_enabled(false), xss_auditor_enabled(false), + local_storage_enabled(false), + session_storage_enabled(false), user_style_sheet_enabled(false) { } }; diff --git a/webkit/glue/webview_impl.cc b/webkit/glue/webview_impl.cc index 29152bd..53a5f22 100644 --- a/webkit/glue/webview_impl.cc +++ b/webkit/glue/webview_impl.cc @@ -1424,6 +1424,8 @@ void WebViewImpl::SetPreferences(const WebPreferences& preferences) { settings->setUsesPageCache(preferences.uses_page_cache); settings->setDownloadableBinaryFontsEnabled(preferences.remote_fonts_enabled); settings->setXSSAuditorEnabled(preferences.xss_auditor_enabled); + settings->setLocalStorageEnabled(preferences.local_storage_enabled); + settings->setSessionStorageEnabled(preferences.session_storage_enabled); // This setting affects the behavior of links in an editable region: // clicking the link should select it rather than navigate to it. |