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

Unified Diff: Source/WebKit/chromium/src/WebDatabase.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebKit/chromium/src/DatabaseObserver.cpp ('k') | Source/WebKit/chromium/src/WebRuntimeFeatures.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebKit/chromium/src/WebDatabase.cpp
diff --git a/Source/WebKit/chromium/src/WebDatabase.cpp b/Source/WebKit/chromium/src/WebDatabase.cpp
index b8dd472171715d7478b9015e484817bf9f2164dd..8af6204a397855d5d9c86924a8c74808332f1dc9 100644
--- a/Source/WebKit/chromium/src/WebDatabase.cpp
+++ b/Source/WebKit/chromium/src/WebDatabase.cpp
@@ -40,19 +40,6 @@
#include <wtf/PassRefPtr.h>
#include <wtf/RefPtr.h>
-#if !ENABLE(SQL_DATABASE)
-namespace WebCore {
-class DatabaseBackendBase {
-public:
- String stringIdentifier() const { return String(); }
- String displayName() const { return String(); }
- unsigned long long estimatedSize() const { return 0; }
- SecurityOrigin* securityOrigin() const { return 0; }
- bool isSyncDatabase() const { return false; }
-};
-}
-#endif // !ENABLE(SQL_DATABASE)
-
using namespace WebCore;
namespace WebKit {
@@ -101,30 +88,22 @@ WebDatabaseObserver* WebDatabase::observer()
void WebDatabase::updateDatabaseSize(const WebString& originIdentifier, const WebString& name, long long size)
{
-#if ENABLE(SQL_DATABASE)
QuotaTracker::instance().updateDatabaseSize(originIdentifier, name, size);
-#endif
}
void WebDatabase::updateSpaceAvailable(const WebString& originIdentifier, long long spaceAvailable)
{
-#if ENABLE(SQL_DATABASE)
QuotaTracker::instance().updateSpaceAvailableToOrigin(originIdentifier, spaceAvailable);
-#endif
}
void WebDatabase::resetSpaceAvailable(const WebString& originIdentifier)
{
-#if ENABLE(SQL_DATABASE)
QuotaTracker::instance().resetSpaceAvailableToOrigin(originIdentifier);
-#endif
}
void WebDatabase::closeDatabaseImmediately(const WebString& originIdentifier, const WebString& databaseName)
{
-#if ENABLE(SQL_DATABASE)
DatabaseManager::manager().closeDatabasesImmediately(originIdentifier, databaseName);
-#endif
}
WebDatabase::WebDatabase(const DatabaseBackendBase* database)
« no previous file with comments | « Source/WebKit/chromium/src/DatabaseObserver.cpp ('k') | Source/WebKit/chromium/src/WebRuntimeFeatures.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698