Reviewed by Darin
authorsullivan@apple.com <sullivan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 4 Dec 2007 21:11:38 +0000 (21:11 +0000)
committersullivan@apple.com <sullivan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 4 Dec 2007 21:11:38 +0000 (21:11 +0000)
        Added deleteOrigin: SPI, which isn't fully implemented

        * Storage/WebDatabaseManagerPrivate.h:
        * Storage/WebDatabaseManager.mm:
        (-[WebDatabaseManager deleteOrigin:]):
        just calls deleteDatabasesWithOrigin: for now, but needs to delete origin itself too

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28404 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/mac/ChangeLog
WebKit/mac/Storage/WebDatabaseManager.mm
WebKit/mac/Storage/WebDatabaseManagerPrivate.h

index acca000031bfda67c8c494fe1b5c9729b89323e7..3f3b97fd0d41abd58123364b617b17f1e1e036f3 100644 (file)
@@ -1,3 +1,14 @@
+2007-12-04  John Sullivan  <sullivan@apple.com>
+
+        Reviewed by Darin
+        
+        Added deleteOrigin: SPI, which isn't fully implemented
+
+        * Storage/WebDatabaseManagerPrivate.h:
+        * Storage/WebDatabaseManager.mm:
+        (-[WebDatabaseManager deleteOrigin:]):
+        just calls deleteDatabasesWithOrigin: for now, but needs to delete origin itself too
+
 2007-12-04  Timothy Hatcher  <timothy@apple.com>
 
         Reviewed by Mark Rowe.
index f3bc706e53cdf083a8bc1fc9b033b2878bd05ab0..8c7d8f13f655d949edcd6b28311c3b5043afb56b 100644 (file)
@@ -105,6 +105,12 @@ NSString *WebDatabaseIdentifierKey = @"WebDatabaseIdentifierKey";
     DatabaseTracker::tracker().deleteAllDatabases();
 }
 
+- (void)deleteOrigin:(WebSecurityOrigin *)origin
+{
+    // FIXME: this needs to delete the origin as well as the databases therein
+    [self deleteDatabasesWithOrigin:origin];
+}
+
 - (void)deleteDatabasesWithOrigin:(WebSecurityOrigin *)origin
 {
     DatabaseTracker::tracker().deleteDatabasesWithOrigin(*[origin _core]);
index 0919ab40decad7032d50b2d2d4da85c5165b03a4..39e0d6caff7c8513e7067d1a2f60215a75c438b2 100644 (file)
@@ -58,6 +58,7 @@ extern NSString *WebDatabaseIdentifierKey;
 - (NSDictionary *)detailsForDatabase:(NSString *)databaseIdentifier withOrigin:(WebSecurityOrigin *)origin;
 
 - (void)deleteAllDatabases;
+- (void)deleteOrigin:(WebSecurityOrigin *)origin;
 - (void)deleteDatabasesWithOrigin:(WebSecurityOrigin *)origin;
 - (void)deleteDatabase:(NSString *)databaseIdentifier withOrigin:(WebSecurityOrigin *)origin;