Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1804)

Side by Side Diff: Source/WebCore/Modules/webdatabase/DatabaseContext.cpp

Issue 13774005: Remove the ENABLE_SQL_DATABASE compile-time flag. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: python Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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)
OLDNEW
« no previous file with comments | « Source/WebCore/Modules/webdatabase/DatabaseContext.h ('k') | Source/WebCore/Modules/webdatabase/DatabaseDetails.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698