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

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

Issue 561093003: Remove worker support of Web SQL Database. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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
« no previous file with comments | « Source/modules/webdatabase/DatabaseCallback.idl ('k') | Source/modules/webdatabase/DatabaseContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webdatabase/DatabaseContext.h
diff --git a/Source/modules/webdatabase/DatabaseContext.h b/Source/modules/webdatabase/DatabaseContext.h
index 9bd33ff0dd6020e885938a1345b84ac97dd83ad0..2343e21af832938c3405afadcf739ddd13933bdf 100644
--- a/Source/modules/webdatabase/DatabaseContext.h
+++ b/Source/modules/webdatabase/DatabaseContext.h
@@ -46,8 +46,7 @@ class SecurityOrigin;
class DatabaseContext FINAL
: public ThreadSafeRefCountedWillBeGarbageCollectedFinalized<DatabaseContext>
- , public ActiveDOMObject
- , private WorkerGlobalScope::TerminationObserver {
+ , public ActiveDOMObject {
public:
friend class DatabaseManager;
@@ -64,8 +63,6 @@ public:
DatabaseThread* databaseThread();
void setHasOpenDatabases() { m_hasOpenDatabases = true; }
- void didOpenDatabase(DatabaseBackendBase&);
- void didCloseDatabase(DatabaseBackendBase&);
// Blocks the caller thread until cleanup tasks are completed.
void stopDatabases();
@@ -77,25 +74,7 @@ public:
private:
explicit DatabaseContext(ExecutionContext*);
- virtual void wasRequestedToTerminate() OVERRIDE;
- void stopSyncDatabases();
-
RefPtrWillBeMember<DatabaseThread> m_databaseThread;
-#if ENABLE(OILPAN)
- class DatabaseCloser {
- public:
- explicit DatabaseCloser(DatabaseBackendBase& database) : m_database(database) { }
- ~DatabaseCloser();
-
- private:
- DatabaseBackendBase& m_database;
- };
- 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.
- HashSet<DatabaseBackendBase*> m_openSyncDatabases;
-#endif
bool m_hasOpenDatabases; // This never changes back to false, even after the database thread is closed.
bool m_hasRequestedTermination;
};
« no previous file with comments | « Source/modules/webdatabase/DatabaseCallback.idl ('k') | Source/modules/webdatabase/DatabaseContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698