| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 #include "WebStorageNamespaceImpl.h" | 32 #include "WebStorageNamespaceImpl.h" |
| 33 | 33 |
| 34 #if ENABLE(DOM_STORAGE) | 34 #if ENABLE(DOM_STORAGE) |
| 35 | 35 |
| 36 #include "SecurityOrigin.h" | 36 #include "SecurityOrigin.h" |
| 37 #include "StorageMap.h" |
| 37 | 38 |
| 38 #include "WebStorageAreaImpl.h" | 39 #include "WebStorageAreaImpl.h" |
| 39 #include "WebString.h" | 40 #include "WebString.h" |
| 40 | 41 |
| 41 namespace WebKit { | 42 namespace WebKit { |
| 42 | 43 |
| 43 WebStorageNamespace* WebStorageNamespace::createLocalStorageNamespace(const WebString& path) | 44 WebStorageNamespace* WebStorageNamespace::createLocalStorageNamespace(const WebString& path) |
| 44 { | 45 { |
| 45 return new WebStorageNamespaceImpl(WebCore::StorageNamespaceImpl::localStorageNamespace(path)); | 46 return new WebStorageNamespaceImpl(WebCore::StorageNamespaceImpl::localStorageNamespace(path, WebCore::StorageMap::noQuota)); |
| 46 } | 47 } |
| 47 | 48 |
| 48 WebStorageNamespace* WebStorageNamespace::createSessionStorageNamespace() | 49 WebStorageNamespace* WebStorageNamespace::createSessionStorageNamespace() |
| 49 { | 50 { |
| 50 return new WebStorageNamespaceImpl(WebCore::StorageNamespaceImpl::sessionStorageNamespace()); | 51 return new WebStorageNamespaceImpl(WebCore::StorageNamespaceImpl::sessionStorageNamespace()); |
| 51 } | 52 } |
| 52 | 53 |
| 53 WebStorageNamespaceImpl::WebStorageNamespaceImpl(PassRefPtr<WebCore::StorageNamespace> storageNamespace) | 54 WebStorageNamespaceImpl::WebStorageNamespaceImpl(PassRefPtr<WebCore::StorageNamespace> storageNamespace) |
| 54 : m_storageNamespace(storageNamespace) | 55 : m_storageNamespace(storageNamespace) |
| 55 { | 56 { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 71 } | 72 } |
| 72 | 73 |
| 73 void WebStorageNamespaceImpl::close() | 74 void WebStorageNamespaceImpl::close() |
| 74 { | 75 { |
| 75 m_storageNamespace->close(); | 76 m_storageNamespace->close(); |
| 76 } | 77 } |
| 77 | 78 |
| 78 } // namespace WebKit | 79 } // namespace WebKit |
| 79 | 80 |
| 80 #endif // ENABLE(DOM_STORAGE) | 81 #endif // ENABLE(DOM_STORAGE) |
| OLD | NEW |