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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBRequest.cpp

Issue 1963293002: Replacing Indexed DB Chromium IPC with Mojo Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactoring after Passing URLRequestContextGetter. Created 4 years, 4 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/IDBRequest.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBRequest.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBRequest.cpp
index 7c1d7d87db0acc1970b2afb9619aaebf2f87b109..07eec0c0a203c8134c7239c88459e723bb68bd3a 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBRequest.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBRequest.cpp
@@ -39,6 +39,7 @@
#include "modules/IndexedDBNames.h"
#include "modules/indexeddb/IDBCursorWithValue.h"
#include "modules/indexeddb/IDBDatabase.h"
+#include "modules/indexeddb/IDBDatabaseProxy.h"
#include "modules/indexeddb/IDBEventDispatcher.h"
#include "modules/indexeddb/IDBTracing.h"
#include "modules/indexeddb/IDBValue.h"
@@ -46,8 +47,6 @@
#include "public/platform/WebBlobInfo.h"
#include <memory>
-using blink::WebIDBCursor;
-
namespace blink {
IDBRequest* IDBRequest::create(ScriptState* scriptState, IDBAny* source, IDBTransaction* transaction)
@@ -153,7 +152,7 @@ void IDBRequest::abort()
m_requestAborted = true;
}
-void IDBRequest::setCursorDetails(IndexedDB::CursorType cursorType, WebIDBCursorDirection direction)
+void IDBRequest::setCursorDetails(IndexedDB::CursorType cursorType, indexed_db::mojom::blink::CursorDirection direction)
{
ASSERT(m_readyState == PENDING);
ASSERT(!m_pendingCursor);
@@ -205,7 +204,7 @@ void IDBRequest::ackReceivedBlobs(const IDBValue* value)
return;
Vector<String> uuids = value->getUUIDs();
if (!uuids.isEmpty())
- m_transaction->backendDB()->ackReceivedBlobs(uuids);
+ m_transaction->backendDB()->AckReceivedBlobs(std::move(uuids));
}
void IDBRequest::ackReceivedBlobs(const Vector<RefPtr<IDBValue>>& values)
@@ -250,7 +249,7 @@ void IDBRequest::onSuccess(const Vector<String>& stringList)
onSuccessInternal(IDBAny::create(domStringList));
}
-void IDBRequest::onSuccess(std::unique_ptr<WebIDBCursor> backend, IDBKey* key, IDBKey* primaryKey, PassRefPtr<IDBValue> value)
+void IDBRequest::onSuccess(std::unique_ptr<IDBCursorProxy> backend, IDBKey* key, IDBKey* primaryKey, PassRefPtr<IDBValue> value)
{
IDB_TRACE("IDBRequest::onSuccess(IDBCursor)");
if (!shouldEnqueueEvent())
@@ -541,4 +540,10 @@ void IDBRequest::dequeueEvent(Event* event)
}
}
+void IDBRequest::onGetResult(indexed_db::mojom::blink::GetResultPtr result)
+{
+ // Implement me.
+ NOTREACHED();
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698