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

Unified Diff: Source/modules/webdatabase/DatabaseContext.h

Issue 215063005: Oilpan: Prepare to move DatabaseContext to Oilpan heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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: Source/modules/webdatabase/DatabaseContext.h
diff --git a/Source/modules/webdatabase/DatabaseContext.h b/Source/modules/webdatabase/DatabaseContext.h
index dd9b5d717a61a111f0a53c59dcf146f162eba9a8..f8e11abff1cb23ad4614f5dd3a755c68fc1e5085 100644
--- a/Source/modules/webdatabase/DatabaseContext.h
+++ b/Source/modules/webdatabase/DatabaseContext.h
@@ -43,13 +43,14 @@ class DatabaseThread;
class ExecutionContext;
class SecurityOrigin;
-class DatabaseContext FINAL : public ThreadSafeRefCounted<DatabaseContext>, public ActiveDOMObject {
+class DatabaseContext FINAL : public ThreadSafeRefCountedWillBeGarbageCollectedFinalized<DatabaseContext>, public ActiveDOMObject {
public:
friend class DatabaseManager;
- static PassRefPtr<DatabaseContext> create(ExecutionContext*);
+ static PassRefPtrWillBeRawPtr<DatabaseContext> create(ExecutionContext*);
virtual ~DatabaseContext();
+ void trace(Visitor*);
// For life-cycle management (inherited from ActiveDOMObject):
virtual void contextDestroyed() OVERRIDE;
@@ -75,7 +76,7 @@ private:
void stopSyncDatabases();
- RefPtrWillBePersistent<DatabaseThread> m_databaseThread;
+ RefPtrWillBeMember<DatabaseThread> m_databaseThread;
#if ENABLE(OILPAN)
class DatabaseCloser {
public:
@@ -85,7 +86,7 @@ private:
private:
DatabaseBackendBase& m_database;
};
- PersistentHeapHashMap<WeakMember<DatabaseBackendBase>, OwnPtr<DatabaseCloser> > m_openSyncDatabases;
+ HeapHashMap<WeakMember<DatabaseBackendBase>, OwnPtr<DatabaseCloser> > m_openSyncDatabases;
#else
// The contents of m_openSyncDatabases are raw pointers. It's safe because
// DatabaseBackendSync is always closed before destruction.

Powered by Google App Engine
This is Rietveld 408576698