diff options
author | jorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-18 17:37:05 +0000 |
---|---|---|
committer | jorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-18 17:37:05 +0000 |
commit | 035a0bc77862323b1840ad2e80bfbe35f04407c6 (patch) | |
tree | c3d559c9e902b672015b95ddb6eb6ee26c68e5a7 /webkit | |
parent | 109607461c875c18217b2c3624a060945f11daea (diff) | |
download | chromium_src-035a0bc77862323b1840ad2e80bfbe35f04407c6.zip chromium_src-035a0bc77862323b1840ad2e80bfbe35f04407c6.tar.gz chromium_src-035a0bc77862323b1840ad2e80bfbe35f04407c6.tar.bz2 |
Reverting 21059.
Review URL: http://codereview.chromium.org/159056
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21060 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/api/src/StorageNamespaceProxy.cpp | 47 | ||||
-rw-r--r-- | webkit/api/src/StorageNamespaceProxy.h | 37 | ||||
-rw-r--r-- | webkit/glue/webpreferences.h | 4 | ||||
-rw-r--r-- | webkit/glue/webview_impl.cc | 2 | ||||
-rw-r--r-- | webkit/webkit.gyp | 13 |
5 files changed, 9 insertions, 94 deletions
diff --git a/webkit/api/src/StorageNamespaceProxy.cpp b/webkit/api/src/StorageNamespaceProxy.cpp deleted file mode 100644 index 8955c33..0000000 --- a/webkit/api/src/StorageNamespaceProxy.cpp +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2009 Google Inc. All Rights Reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include "config.h" -#include "StorageNamespaceProxy.h" - -#if ENABLE(DOM_STORAGE) - -namespace WebCore { - -PassRefPtr<StorageNamespace> StorageNamespace::localStorageNamespace(const String& path) -{ - ASSERT_NOT_REACHED(); - return NULL; -} - -PassRefPtr<StorageNamespace> StorageNamespace::sessionStorageNamespace() -{ - ASSERT_NOT_REACHED(); - return NULL; -} - -} // namespace WebCore - -#endif // ENABLE(DOM_STORAGE) diff --git a/webkit/api/src/StorageNamespaceProxy.h b/webkit/api/src/StorageNamespaceProxy.h deleted file mode 100644 index 0b9058c..0000000 --- a/webkit/api/src/StorageNamespaceProxy.h +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2009 Google Inc. All Rights Reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef StorageNamespaceProxy_h -#define StorageNamespaceProxy_h - -#if ENABLE(DOM_STORAGE) - -#include "StorageNamespace.h" - -// FIXME: Implement the StorageNamespaceProxy - -#endif // ENABLE(DOM_STORAGE) - -#endif // StorageNamespaceProxy_h diff --git a/webkit/glue/webpreferences.h b/webkit/glue/webpreferences.h index dd0581e..d75138a 100644 --- a/webkit/glue/webpreferences.h +++ b/webkit/glue/webpreferences.h @@ -42,8 +42,6 @@ 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. @@ -81,8 +79,6 @@ 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 53a5f22..29152bd 100644 --- a/webkit/glue/webview_impl.cc +++ b/webkit/glue/webview_impl.cc @@ -1424,8 +1424,6 @@ 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. diff --git a/webkit/webkit.gyp b/webkit/webkit.gyp index e49edcc..0ae547d 100644 --- a/webkit/webkit.gyp +++ b/webkit/webkit.gyp @@ -9,7 +9,6 @@ 'ENABLE_DATABASE=1', 'ENABLE_DATAGRID=1', 'ENABLE_DASHBOARD_SUPPORT=0', - 'ENABLE_DOM_STORAGE=1', 'ENABLE_JAVASCRIPT_DEBUGGER=0', 'ENABLE_JSC_MULTIPLE_THREADS=0', 'ENABLE_ICONDATABASE=0', @@ -595,6 +594,9 @@ # Exclude JSC custom bindings. ['exclude', '/third_party/WebKit/WebCore/bindings/js'], + # Don't build bindings for storage. + ['exclude', '/third_party/WebKit/WebCore/storage/Storage[^/]*\\.idl$'], + # SVG_FILTERS only. ['exclude', '/third_party/WebKit/WebCore/svg/SVG(FE|Filter)[^/]*\\.idl$'], @@ -617,6 +619,9 @@ ['exclude', '/third_party/WebKit/WebCore/svg/Filter[^/]*\\.cpp$'], ['exclude', '/third_party/WebKit/WebCore/svg/SVG(FE|Filter)[^/]*\\.cpp$'], + # Exclude some, but not all, of storage. + ['exclude', '/third_party/WebKit/WebCore/storage/(Local|Session)Storage[^/]*\\.cpp$'], + # Exclude PluginDebug.cpp since it doesn't compile properly without the # correct npapi.h inclusion (http://crbug.com/17127 ['exclude', '/third_party/WebKit/WebCore/plugins/PluginDebug.cpp'], @@ -666,7 +671,9 @@ # A few things can't be excluded by patterns. List them individually. - # Don't build StorageNamespace. We have our own implementation. + # Do not build StorageArea or StorageNamespace for Chromium. We (will) + # have our own implementation. + '../third_party/WebKit/WebCore/storage/StorageArea.cpp', '../third_party/WebKit/WebCore/storage/StorageNamespace.cpp', # Use history/BackForwardListChromium.cpp instead. @@ -1036,8 +1043,6 @@ 'api/src/LocalizedStrings.cpp', 'api/src/MediaPlayerPrivateChromium.cpp', 'api/src/ResourceHandle.cpp', - 'api/src/StorageNamespaceProxy.cpp', - 'api/src/StorageNamespaceProxy.h', 'api/src/TemporaryGlue.h', 'api/src/WebCache.cpp', 'api/src/WebCString.cpp', |