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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBOpenDBRequest.h

Issue 2320213004: Port IndexedDB open() and database callbacks to Mojo. (Closed)
Patch Set: Make DatabaseClient an associated interface. Created 4 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
Index: third_party/WebKit/Source/modules/indexeddb/IDBOpenDBRequest.h
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBOpenDBRequest.h b/third_party/WebKit/Source/modules/indexeddb/IDBOpenDBRequest.h
index 637d1a2880d5941284726a703fd5b32a36ea7436..8e57b9acd6cf5cf3af373682b5d9f7bc3804a1f4 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBOpenDBRequest.h
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBOpenDBRequest.h
@@ -29,21 +29,22 @@
#include "modules/ModulesExport.h"
#include "modules/indexeddb/IDBRequest.h"
#include "public/platform/modules/indexeddb/WebIDBDatabase.h"
+#include "public/platform/modules/indexeddb/indexed_db.mojom-blink.h"
#include <memory>
namespace blink {
-class IDBDatabaseCallbacks;
-
class MODULES_EXPORT IDBOpenDBRequest final : public IDBRequest {
DEFINE_WRAPPERTYPEINFO();
public:
- static IDBOpenDBRequest* create(ScriptState*, IDBDatabaseCallbacks*, int64_t transactionId, int64_t version);
+ static IDBOpenDBRequest* create(ScriptState*, int64_t transactionId, int64_t version);
~IDBOpenDBRequest() override;
DECLARE_VIRTUAL_TRACE();
using IDBRequest::onSuccess;
+ void setClientRequest(indexed_db::mojom::blink::DatabaseClientAssociatedRequest);
+
void onBlocked(int64_t existingVersion) override;
void onUpgradeNeeded(int64_t oldVersion, std::unique_ptr<WebIDBDatabase>, const IDBDatabaseMetadata&, WebIDBDataLoss, String dataLossMessage) override;
void onSuccess(std::unique_ptr<WebIDBDatabase>, const IDBDatabaseMetadata&) override;
@@ -62,9 +63,9 @@ protected:
DispatchEventResult dispatchEventInternal(Event*) override;
private:
- IDBOpenDBRequest(ScriptState*, IDBDatabaseCallbacks*, int64_t transactionId, int64_t version);
+ IDBOpenDBRequest(ScriptState*, int64_t transactionId, int64_t version);
- Member<IDBDatabaseCallbacks> m_databaseCallbacks;
+ indexed_db::mojom::blink::DatabaseClientAssociatedRequest m_clientRequest;
const int64_t m_transactionId;
int64_t m_version;
};

Powered by Google App Engine
This is Rietveld 408576698