| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
| 3 * Copyright (C) 2011 Google, Inc. All Rights Reserved. | 3 * Copyright (C) 2011 Google, Inc. All Rights Reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
| 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 25 * | 25 * |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #include "config.h" | 28 #include "config.h" |
| 29 #include "DatabaseContext.h" | 29 #include "DatabaseContext.h" |
| 30 | 30 |
| 31 #if ENABLE(SQL_DATABASE) | |
| 32 | |
| 33 #include "Chrome.h" | 31 #include "Chrome.h" |
| 34 #include "ChromeClient.h" | 32 #include "ChromeClient.h" |
| 35 #include "Database.h" | 33 #include "Database.h" |
| 36 #include "DatabaseBackendContext.h" | 34 #include "DatabaseBackendContext.h" |
| 37 #include "DatabaseManager.h" | 35 #include "DatabaseManager.h" |
| 38 #include "DatabaseTask.h" | 36 #include "DatabaseTask.h" |
| 39 #include "DatabaseThread.h" | 37 #include "DatabaseThread.h" |
| 40 #include "Document.h" | 38 #include "Document.h" |
| 41 #include "Page.h" | 39 #include "Page.h" |
| 42 #include "SchemeRegistry.h" | 40 #include "SchemeRegistry.h" |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 } | 223 } |
| 226 ASSERT(m_scriptExecutionContext->isWorkerContext()); | 224 ASSERT(m_scriptExecutionContext->isWorkerContext()); |
| 227 #if !PLATFORM(CHROMIUM) | 225 #if !PLATFORM(CHROMIUM) |
| 228 // FIXME: This needs a real implementation; this is a temporary solution for
testing. | 226 // FIXME: This needs a real implementation; this is a temporary solution for
testing. |
| 229 const unsigned long long defaultQuota = 5 * 1024 * 1024; | 227 const unsigned long long defaultQuota = 5 * 1024 * 1024; |
| 230 DatabaseManager::manager().setQuota(m_scriptExecutionContext->securityOrigin
(), defaultQuota); | 228 DatabaseManager::manager().setQuota(m_scriptExecutionContext->securityOrigin
(), defaultQuota); |
| 231 #endif | 229 #endif |
| 232 } | 230 } |
| 233 | 231 |
| 234 } // namespace WebCore | 232 } // namespace WebCore |
| 235 | |
| 236 #endif // ENABLE(SQL_DATABASE) | |
| OLD | NEW |