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

Unified Diff: third_party/WebKit/Source/modules/webdatabase/QuotaTracker.h

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/modules/webdatabase/QuotaTracker.h
diff --git a/third_party/WebKit/Source/modules/webdatabase/QuotaTracker.h b/third_party/WebKit/Source/modules/webdatabase/QuotaTracker.h
index eb37a9d2d0c2bae38a01a02bd3cae24a00da32f8..9c64ab23a52c69f4f9ea27b57d3e23f4e3987c2f 100644
--- a/third_party/WebKit/Source/modules/webdatabase/QuotaTracker.h
+++ b/third_party/WebKit/Source/modules/webdatabase/QuotaTracker.h
@@ -32,7 +32,6 @@
#define QuotaTracker_h
#include "modules/ModulesExport.h"
-#include "platform/weborigin/SecurityOrigin.h"
#include "wtf/HashMap.h"
#include "wtf/ThreadingPrimitives.h"
#include "wtf/text/StringHash.h"
@@ -40,6 +39,8 @@
namespace blink {
+class SecurityOrigin;
+
class MODULES_EXPORT QuotaTracker {
USING_FAST_MALLOC(QuotaTracker);
WTF_MAKE_NONCOPYABLE(QuotaTracker);
@@ -47,13 +48,13 @@ public:
static QuotaTracker& instance();
void getDatabaseSizeAndSpaceAvailableToOrigin(
- const String& originIdentifier, const String& databaseName,
+ SecurityOrigin*, const String& databaseName,
unsigned long long* databaseSize, unsigned long long* spaceAvailable);
void updateDatabaseSize(
- const String& originIdentifier, const String& databaseName,
+ SecurityOrigin*, const String& databaseName,
unsigned long long databaseSize);
- void updateSpaceAvailableToOrigin(const String& originIdentifier, unsigned long long spaceAvailable);
- void resetSpaceAvailableToOrigin(const String& originIdentifier);
+ void updateSpaceAvailableToOrigin(SecurityOrigin*, unsigned long long spaceAvailable);
+ void resetSpaceAvailableToOrigin(SecurityOrigin*);
private:
QuotaTracker() { }

Powered by Google App Engine
This is Rietveld 408576698