Commit 1095f23d authored by abarth@webkit.org's avatar abarth@webkit.org

2009-06-13 Ben Murdoch <benm@google.com>

        Reviewed by Eric Seidel.  Landed by Adam Barth.

        https://bugs.webkit.org/show_bug.cgi?id=26189

        Add ENABLE(DOM_STORAGE) guards to the dom storage source files.

        * storage/LocalStorage.cpp: Add ENABLE(DOM_STORAGE) guards to the file.
        * storage/LocalStorage.h: Ditto
        * storage/LocalStorageArea.cpp: Ditto
        * storage/LocalStorageArea.h: Ditto
        * storage/LocalStorageTask.cpp: Ditto
        * storage/LocalStorageTask.h: Ditto
        * storage/LocalStorageThread.cpp: Ditto
        * storage/LocalStorageThread.h: Ditto
        * storage/SessionStorage.cpp: Ditto
        * storage/SessionStorage.h: Ditto
        * storage/SessionStorageArea.cpp: Ditto
        * storage/SessionStorageArea.h: Ditto
        * storage/Storage.cpp: Ditto
        * storage/Storage.h: Ditto
        * storage/StorageArea.cpp: Ditto
        * storage/StorageArea.h: Ditto
        * storage/StorageEvent.cpp: Ditto
        * storage/StorageEvent.h: Ditto
        * storage/StorageMap.cpp: Ditto
        * storage/StorageMap.h: Ditto
        * storage/StorageEvent.idl: Add Conditional=DOM_STORAGE attribute.
        * storage/Storage.idl: Ditto



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@44662 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 0da40070
2009-06-13 Ben Murdoch <benm@google.com>
Reviewed by Eric Seidel. Landed by Adam Barth.
https://bugs.webkit.org/show_bug.cgi?id=26189
Add ENABLE(DOM_STORAGE) guards to the dom storage source files.
* storage/LocalStorage.cpp: Add ENABLE(DOM_STORAGE) guards to the file.
* storage/LocalStorage.h: Ditto
* storage/LocalStorageArea.cpp: Ditto
* storage/LocalStorageArea.h: Ditto
* storage/LocalStorageTask.cpp: Ditto
* storage/LocalStorageTask.h: Ditto
* storage/LocalStorageThread.cpp: Ditto
* storage/LocalStorageThread.h: Ditto
* storage/SessionStorage.cpp: Ditto
* storage/SessionStorage.h: Ditto
* storage/SessionStorageArea.cpp: Ditto
* storage/SessionStorageArea.h: Ditto
* storage/Storage.cpp: Ditto
* storage/Storage.h: Ditto
* storage/StorageArea.cpp: Ditto
* storage/StorageArea.h: Ditto
* storage/StorageEvent.cpp: Ditto
* storage/StorageEvent.h: Ditto
* storage/StorageMap.cpp: Ditto
* storage/StorageMap.h: Ditto
* storage/StorageEvent.idl: Add Conditional=DOM_STORAGE attribute.
* storage/Storage.idl: Ditto
2009-06-13 Peter Kasting <pkasting@google.com>
Reviewed by Eric Seidel.
......@@ -26,6 +26,8 @@
#include "config.h"
#include "LocalStorage.h"
#if ENABLE(DOM_STORAGE)
#include "CString.h"
#include "EventNames.h"
#include "FileSystem.h"
......@@ -170,3 +172,6 @@ void LocalStorage::scheduleSync(PassRefPtr<LocalStorageArea> area)
}
} // namespace WebCore
#endif // ENABLE(DOM_STORAGE)
......@@ -26,6 +26,8 @@
#ifndef LocalStorage_h
#define LocalStorage_h
#if ENABLE(DOM_STORAGE)
#include "LocalStorageArea.h"
#include "LocalStorageTask.h"
#include "LocalStorageThread.h"
......@@ -78,4 +80,6 @@ namespace WebCore {
} // namespace WebCore
#endif // ENABLE(DOM_STORAGE)
#endif // LocalStorage_h
......@@ -26,6 +26,8 @@
#include "config.h"
#include "LocalStorageArea.h"
#if ENABLE(DOM_STORAGE)
#include "CString.h"
#include "DOMWindow.h"
#include "EventNames.h"
......@@ -450,3 +452,6 @@ void LocalStorageArea::performSync()
}
} // namespace WebCore
#endif // ENABLE(DOM_STORAGE)
......@@ -26,6 +26,8 @@
#ifndef LocalStorageArea_h
#define LocalStorageArea_h
#if ENABLE(DOM_STORAGE)
#include "SQLiteDatabase.h"
#include "StorageArea.h"
#include "StringHash.h"
......@@ -97,4 +99,6 @@ namespace WebCore {
} // namespace WebCore
#endif // ENABLE(DOM_STORAGE)
#endif // LocalStorageArea_h
......@@ -26,6 +26,8 @@
#include "config.h"
#include "LocalStorageTask.h"
#if ENABLE(DOM_STORAGE)
#include "LocalStorage.h"
#include "LocalStorageArea.h"
#include "LocalStorageThread.h"
......@@ -82,3 +84,6 @@ void LocalStorageTask::performTask()
}
}
#endif // ENABLE(DOM_STORAGE)
......@@ -26,6 +26,8 @@
#ifndef LocalStorageTask_h
#define LocalStorageTask_h
#if ENABLE(DOM_STORAGE)
#include <wtf/PassRefPtr.h>
#include <wtf/RefPtr.h>
#include <wtf/Threading.h>
......@@ -61,4 +63,6 @@ namespace WebCore {
} // namespace WebCore
#endif // ENABLE(DOM_STORAGE)
#endif // LocalStorageTask_h
......@@ -26,6 +26,8 @@
#include "config.h"
#include "LocalStorageThread.h"
#if ENABLE(DOM_STORAGE)
#include "LocalStorage.h"
#include "LocalStorageArea.h"
#include "LocalStorageTask.h"
......@@ -137,3 +139,6 @@ void LocalStorageThread::performTerminate()
}
}
#endif // ENABLE(DOM_STORAGE)
......@@ -26,6 +26,8 @@
#ifndef LocalStorageThread_h
#define LocalStorageThread_h
#if ENABLE(DOM_STORAGE)
#include <wtf/HashSet.h>
#include <wtf/MessageQueue.h>
#include <wtf/PassRefPtr.h>
......@@ -71,4 +73,6 @@ namespace WebCore {
} // namespace WebCore
#endif // ENABLE(DOM_STORAGE)
#endif // LocalStorageThread_h
......@@ -26,6 +26,8 @@
#include "config.h"
#include "SessionStorage.h"
#if ENABLE(DOM_STORAGE)
#include "EventNames.h"
#include "Frame.h"
#include "FrameTree.h"
......@@ -73,3 +75,6 @@ PassRefPtr<StorageArea> SessionStorage::storageArea(SecurityOrigin* origin)
}
}
#endif // ENABLE(DOM_STORAGE)
......@@ -26,6 +26,8 @@
#ifndef SessionStorage_h
#define SessionStorage_h
#if ENABLE(DOM_STORAGE)
#include "SecurityOriginHash.h"
#include "SessionStorageArea.h"
......@@ -61,4 +63,6 @@ namespace WebCore {
} // namespace WebCore
#endif // ENABLE(DOM_STORAGE)
#endif // SessionStorage_h
......@@ -26,6 +26,8 @@
#include "config.h"
#include "SessionStorageArea.h"
#if ENABLE(DOM_STORAGE)
#include "DOMWindow.h"
#include "EventNames.h"
#include "Frame.h"
......@@ -87,3 +89,6 @@ void SessionStorageArea::dispatchStorageEvent(const String& key, const String& o
}
} // namespace WebCore
#endif // ENABLE(DOM_STORAGE)
......@@ -26,6 +26,8 @@
#ifndef SessionStorageArea_h
#define SessionStorageArea_h
#if ENABLE(DOM_STORAGE)
#include "StorageArea.h"
namespace WebCore {
......@@ -54,4 +56,6 @@ namespace WebCore {
} // namespace WebCore
#endif // ENABLE(DOM_STORAGE)
#endif // SessionStorageArea_h
......@@ -26,6 +26,8 @@
#include "config.h"
#include "Storage.h"
#if ENABLE(DOM_STORAGE)
#include "StorageArea.h"
#include "PlatformString.h"
#include <wtf/PassRefPtr.h>
......@@ -104,3 +106,6 @@ bool Storage::contains(const String& key) const
}
}
#endif // ENABLE(DOM_STORAGE)
......@@ -26,6 +26,8 @@
#ifndef Storage_h
#define Storage_h
#if ENABLE(DOM_STORAGE)
#include "StorageArea.h"
#include <wtf/Forward.h>
......@@ -62,4 +64,6 @@ namespace WebCore {
} // namespace WebCore
#endif // ENABLE(DOM_STORAGE)
#endif // Storage_h
......@@ -30,7 +30,8 @@ module storage {
HasNameGetter,
CustomDeleteProperty,
CustomGetPropertyNames,
CustomPutFunction
CustomPutFunction,
Conditional=DOM_STORAGE
] Storage {
readonly attribute [DontEnum] unsigned long length;
[DontEnum] DOMString key(in unsigned long index)
......
......@@ -26,6 +26,8 @@
#include "config.h"
#include "StorageArea.h"
#if ENABLE(DOM_STORAGE)
#include "CString.h"
#include "ExceptionCode.h"
#include "Frame.h"
......@@ -137,3 +139,6 @@ void StorageArea::importItem(const String& key, const String& value)
}
}
#endif // ENABLE(DOM_STORAGE)
......@@ -26,6 +26,8 @@
#ifndef StorageArea_h
#define StorageArea_h
#if ENABLE(DOM_STORAGE)
#include "PlatformString.h"
#include <wtf/Forward.h>
......@@ -80,4 +82,6 @@ namespace WebCore {
} // namespace WebCore
#endif // ENABLE(DOM_STORAGE)
#endif // StorageArea_h
......@@ -26,6 +26,8 @@
#include "config.h"
#include "StorageEvent.h"
#if ENABLE(DOM_STORAGE)
#include "DOMWindow.h"
#include "Storage.h"
......@@ -58,3 +60,6 @@ void StorageEvent::initStorageEvent(const AtomicString& type, bool canBubble, bo
}
} // namespace WebCore
#endif // ENABLE(DOM_STORAGE)
......@@ -26,6 +26,8 @@
#ifndef StorageEvent_h
#define StorageEvent_h
#if ENABLE(DOM_STORAGE)
#include "Event.h"
#include "Storage.h"
......@@ -72,4 +74,6 @@ namespace WebCore {
} // namespace WebCore
#endif // ENABLE(DOM_STORAGE)
#endif // StorageEvent_h
......@@ -26,7 +26,8 @@
module storage {
interface [
GenerateConstructor
GenerateConstructor,
Conditional=DOM_STORAGE
] StorageEvent : Event {
readonly attribute DOMString key;
readonly attribute [ConvertNullStringTo=Null] DOMString oldValue;
......
......@@ -26,6 +26,8 @@
#include "config.h"
#include "StorageMap.h"
#if ENABLE(DOM_STORAGE)
namespace WebCore {
PassRefPtr<StorageMap> StorageMap::create()
......@@ -156,3 +158,6 @@ void StorageMap::importItem(const String& key, const String& value) const
}
}
#endif // ENABLE(DOM_STORAGE)
......@@ -26,6 +26,8 @@
#ifndef StorageMap_h
#define StorageMap_h
#if ENABLE(DOM_STORAGE)
#include "PlatformString.h"
#include "StringHash.h"
......@@ -62,4 +64,6 @@ namespace WebCore {
} // namespace WebCore
#endif // ENABLE(DOM_STORAGE)
#endif // StorageMap_h
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment