Title: [141320] trunk/Source/WebCore
Revision
141320
Author
mark....@apple.com
Date
2013-01-30 14:45:33 -0800 (Wed, 30 Jan 2013)

Log Message

DatabaseContext should implement ThreadSafeRefCounted.
https://bugs.webkit.org/show_bug.cgi?id=108285.

Reviewed by Alexey Proskuryakov.

DatabaseManager::interruptAllDatabasesForContext() can ref a
DatabaseContext from another thread. Hence, the DatabaseContext needs
to be a ThreadSafeRefCounted instead of a RefCounted.

No new tests.

* Modules/webdatabase/DatabaseContext.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (141319 => 141320)


--- trunk/Source/WebCore/ChangeLog	2013-01-30 22:44:52 UTC (rev 141319)
+++ trunk/Source/WebCore/ChangeLog	2013-01-30 22:45:33 UTC (rev 141320)
@@ -1,3 +1,18 @@
+2013-01-30  Mark Lam  <mark....@apple.com>
+
+        DatabaseContext should implement ThreadSafeRefCounted.
+        https://bugs.webkit.org/show_bug.cgi?id=108285.
+
+        Reviewed by Alexey Proskuryakov.
+
+        DatabaseManager::interruptAllDatabasesForContext() can ref a
+        DatabaseContext from another thread. Hence, the DatabaseContext needs
+        to be a ThreadSafeRefCounted instead of a RefCounted.
+
+        No new tests.
+
+        * Modules/webdatabase/DatabaseContext.h:
+
 2013-01-30  Kentaro Hara  <hara...@chromium.org>
 
         Implement WheelEvent constructor

Modified: trunk/Source/WebCore/Modules/webdatabase/DatabaseContext.h (141319 => 141320)


--- trunk/Source/WebCore/Modules/webdatabase/DatabaseContext.h	2013-01-30 22:44:52 UTC (rev 141319)
+++ trunk/Source/WebCore/Modules/webdatabase/DatabaseContext.h	2013-01-30 22:45:33 UTC (rev 141320)
@@ -33,7 +33,7 @@
 #include "ActiveDOMObject.h"
 #include "DatabaseDetails.h"
 #include <wtf/Assertions.h>
-#include <wtf/RefCounted.h>
+#include <wtf/ThreadSafeRefCounted.h>
 
 namespace WebCore {
 
@@ -42,7 +42,7 @@
 class DatabaseThread;
 class ScriptExecutionContext;
 
-class DatabaseContext : public RefCounted<DatabaseContext>, ActiveDOMObject {
+class DatabaseContext : public ThreadSafeRefCounted<DatabaseContext>, ActiveDOMObject {
 public:
     virtual ~DatabaseContext();
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to