diff options
author | jorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-21 03:23:40 +0000 |
---|---|---|
committer | jorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-21 03:23:40 +0000 |
commit | 97467c9a3a1968b059db6020aad2a3fdeba33e57 (patch) | |
tree | a86b4577cbf6c3061ebec5f1f28599ec8e9bbf1e /chrome/common | |
parent | fa7e11dea2d3510e2d4bd65a9696a5261f9b3464 (diff) | |
download | chromium_src-97467c9a3a1968b059db6020aad2a3fdeba33e57.zip chromium_src-97467c9a3a1968b059db6020aad2a3fdeba33e57.tar.gz chromium_src-97467c9a3a1968b059db6020aad2a3fdeba33e57.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.Originally Committed in http://src.chromium.org/viewvc/chrome?view=rev&revision=21059 but then backed out due to include path issues.BUG=4360TEST=none
Review URL: http://codereview.chromium.org/159059
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21157 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/chrome_switches.cc | 6 | ||||
-rw-r--r-- | chrome/common/chrome_switches.h | 4 | ||||
-rw-r--r-- | chrome/common/render_messages.h | 6 |
3 files changed, 15 insertions, 1 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc index c3a7770..6528ae1 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -551,4 +551,10 @@ const wchar_t kEnableTabtastic2[] = L"enable-tabtastic2"; // enabled. const wchar_t kPinnedTabCount[] = L"pinned-tab-count"; +// Enable local storage. Still buggy. +const wchar_t kEnableLocalStorage[] = L"enable-local-storage"; + +// Enable session storage. Still buggy. +const wchar_t kEnableSessionStorage[] = L"enable-session-storage"; + } // namespace switches diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h index 135b148..3af9fb2 100644 --- a/chrome/common/chrome_switches.h +++ b/chrome/common/chrome_switches.h @@ -211,6 +211,10 @@ extern const wchar_t kEnableTabtastic2[]; extern const wchar_t kPinnedTabCount[]; +extern const wchar_t kEnableLocalStorage[]; + +extern const wchar_t kEnableSessionStorage[]; + } // namespace switches #endif // CHROME_COMMON_CHROME_SWITCHES_H_ diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h index 41b9466..f769aaf 100644 --- a/chrome/common/render_messages.h +++ b/chrome/common/render_messages.h @@ -1529,6 +1529,8 @@ struct ParamTraits<WebPreferences> { WriteParam(m, p.uses_page_cache); WriteParam(m, p.remote_fonts_enabled); WriteParam(m, p.xss_auditor_enabled); + WriteParam(m, p.local_storage_enabled); + WriteParam(m, p.session_storage_enabled); } static bool Read(const Message* m, void** iter, param_type* p) { return @@ -1559,7 +1561,9 @@ struct ParamTraits<WebPreferences> { ReadParam(m, iter, &p->user_style_sheet_location) && ReadParam(m, iter, &p->uses_page_cache) && ReadParam(m, iter, &p->remote_fonts_enabled) && - ReadParam(m, iter, &p->xss_auditor_enabled); + ReadParam(m, iter, &p->xss_auditor_enabled) && + ReadParam(m, iter, &p->local_storage_enabled) && + ReadParam(m, iter, &p->session_storage_enabled); } static void Log(const param_type& p, std::wstring* l) { l->append(L"<WebPreferences>"); |