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

Unified Diff: Source/modules/indexeddb/IDBFactoryBackendInterface.h

Issue 67463006: IndexedDB: Simplify WebIDBCallbacks exports, strip IDBFactoryBackend (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Re-up Created 7 years, 1 month 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/indexeddb/IDBFactory.cpp ('k') | Source/modules/indexeddb/IDBIndex.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/indexeddb/IDBFactoryBackendInterface.h
diff --git a/Source/modules/indexeddb/IDBFactoryBackendInterface.h b/Source/modules/indexeddb/IDBFactoryBackendInterface.h
index e07e92c81b8f789b96298ba8de36a43c0197c34d..e469082db225487c046e1dfa727906261f9cf8e1 100644
--- a/Source/modules/indexeddb/IDBFactoryBackendInterface.h
+++ b/Source/modules/indexeddb/IDBFactoryBackendInterface.h
@@ -32,27 +32,17 @@
#include "wtf/RefCounted.h"
#include "wtf/text/WTFString.h"
-namespace blink { class WebIDBDatabaseCallbacks; }
-
namespace WebCore {
-class IDBRequest;
-class IDBDatabase;
-class IDBDatabaseCallbacks;
class ExecutionContext;
-// This class is shared by IDBFactory (async) and IDBFactorySync (sync).
-// This is implemented by IDBFactoryBackendImpl and optionally others (in order to proxy
-// calls across process barriers). All calls to these classes should be non-blocking and
-// trigger work on a background thread if necessary.
+// FIXME: This is just a permission client at this point. Rename/refactor.
class IDBFactoryBackendInterface : public RefCounted<IDBFactoryBackendInterface> {
public:
static PassRefPtr<IDBFactoryBackendInterface> create();
virtual ~IDBFactoryBackendInterface() { }
- virtual void getDatabaseNames(PassRefPtr<IDBRequest>, const String& databaseIdentifier, ExecutionContext*) = 0;
- virtual void open(const String& name, int64_t version, int64_t transactionId, PassRefPtr<IDBRequest>, PassOwnPtr<blink::WebIDBDatabaseCallbacks>, const String& databaseIdentifier, ExecutionContext*) = 0;
- virtual void deleteDatabase(const String& name, PassRefPtr<IDBRequest>, const String& databaseIdentifier, ExecutionContext*) = 0;
+ virtual bool allowIndexedDB(WebCore::ExecutionContext*, const String& name) = 0;
};
} // namespace WebCore
« no previous file with comments | « Source/modules/indexeddb/IDBFactory.cpp ('k') | Source/modules/indexeddb/IDBIndex.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698