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

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

Issue 1963293002: Replacing Indexed DB Chromium IPC with Mojo Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some (incomplete) work on struct traits. Created 4 years, 5 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/InspectorIndexedDBAgent.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/InspectorIndexedDBAgent.cpp b/third_party/WebKit/Source/modules/indexeddb/InspectorIndexedDBAgent.cpp
index 87578fe5822a930601f4fbe5b47ad59ccb7d496e..8f1491d36f20658d328e54213691f612a2da8639 100644
--- a/third_party/WebKit/Source/modules/indexeddb/InspectorIndexedDBAgent.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/InspectorIndexedDBAgent.cpp
@@ -77,6 +77,8 @@ typedef blink::protocol::IndexedDB::Backend::RequestDatabaseCallback RequestData
typedef blink::protocol::IndexedDB::Backend::RequestDataCallback RequestDataCallback;
typedef blink::protocol::IndexedDB::Backend::ClearObjectStoreCallback ClearObjectStoreCallback;
+using indexed_db::mojom::blink::CursorDirection;
+
namespace blink {
namespace IndexedDBAgentState {
@@ -540,9 +542,9 @@ public:
return;
}
- idbRequest = idbIndex->openCursor(getScriptState(), m_idbKeyRange.get(), WebIDBCursorDirectionNext);
+ idbRequest = idbIndex->openCursor(getScriptState(), m_idbKeyRange.get(), CursorDirection::Next);
} else {
- idbRequest = idbObjectStore->openCursor(getScriptState(), m_idbKeyRange.get(), WebIDBCursorDirectionNext);
+ idbRequest = idbObjectStore->openCursor(getScriptState(), m_idbKeyRange.get(), CursorDirection::Next);
}
OpenCursorCallback* openCursorCallback = OpenCursorCallback::create(getScriptState(), std::move(m_requestCallback), m_skipCount, m_pageSize);
idbRequest->addEventListener(EventTypeNames::success, openCursorCallback, false);

Powered by Google App Engine
This is Rietveld 408576698