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

Unified Diff: third_party/WebKit/Source/web/WebDatabase.cpp

Issue 1779413002: Remove Blink's DatabaseIdentifier implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unneeded include Created 4 years, 9 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
Index: third_party/WebKit/Source/web/WebDatabase.cpp
diff --git a/third_party/WebKit/Source/web/WebDatabase.cpp b/third_party/WebKit/Source/web/WebDatabase.cpp
index 1158e9e5f165c40e3d37738c68e3b39c2be748f7..ba77144ccd4b6201e23065b95128cd29c929faa8 100644
--- a/third_party/WebKit/Source/web/WebDatabase.cpp
+++ b/third_party/WebKit/Source/web/WebDatabase.cpp
@@ -33,28 +33,29 @@
#include "modules/webdatabase/DatabaseTracker.h"
#include "modules/webdatabase/QuotaTracker.h"
#include "platform/weborigin/SecurityOrigin.h"
+#include "public/platform/WebSecurityOrigin.h"
#include "public/platform/WebString.h"
namespace blink {
-void WebDatabase::updateDatabaseSize(const WebString& originIdentifier, const WebString& name, long long size)
+void WebDatabase::updateDatabaseSize(const WebSecurityOrigin& origin, const WebString& name, long long size)
{
- QuotaTracker::instance().updateDatabaseSize(originIdentifier, name, size);
+ QuotaTracker::instance().updateDatabaseSize(origin.get(), name, size);
}
-void WebDatabase::updateSpaceAvailable(const WebString& originIdentifier, long long spaceAvailable)
+void WebDatabase::updateSpaceAvailable(const WebSecurityOrigin& origin, long long spaceAvailable)
{
- QuotaTracker::instance().updateSpaceAvailableToOrigin(originIdentifier, spaceAvailable);
+ QuotaTracker::instance().updateSpaceAvailableToOrigin(origin.get(), spaceAvailable);
}
-void WebDatabase::resetSpaceAvailable(const WebString& originIdentifier)
+void WebDatabase::resetSpaceAvailable(const WebSecurityOrigin& origin)
{
- QuotaTracker::instance().resetSpaceAvailableToOrigin(originIdentifier);
+ QuotaTracker::instance().resetSpaceAvailableToOrigin(origin.get());
}
-void WebDatabase::closeDatabaseImmediately(const WebString& originIdentifier, const WebString& databaseName)
+void WebDatabase::closeDatabaseImmediately(const WebSecurityOrigin& origin, const WebString& databaseName)
{
- DatabaseTracker::tracker().closeDatabasesImmediately(originIdentifier, databaseName);
+ DatabaseTracker::tracker().closeDatabasesImmediately(origin.get(), databaseName);
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/platform/weborigin/DatabaseIdentifierTest.cpp ('k') | third_party/WebKit/public/platform/Platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698