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

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: 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/InspectorIndexedDBAgent.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/InspectorIndexedDBAgent.cpp b/third_party/WebKit/Source/modules/indexeddb/InspectorIndexedDBAgent.cpp
index fcbae0f7c62a29597385420a6420824367c3e476..2e734e2ef5176d97f170c436452b453351084273 100644
--- a/third_party/WebKit/Source/modules/indexeddb/InspectorIndexedDBAgent.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/InspectorIndexedDBAgent.cpp
@@ -76,6 +76,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 {
@@ -536,9 +538,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(m_v8Session, getScriptState(), std::move(m_requestCallback), m_skipCount, m_pageSize);
idbRequest->addEventListener(EventTypeNames::success, openCursorCallback, false);

Powered by Google App Engine
This is Rietveld 408576698