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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBKeyPath.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/IDBKeyPath.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBKeyPath.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBKeyPath.cpp
index 7ae9f74d393ae8ab7c96ab0cfcaa3e6102461422..0416292bd606083be23cc6e9b3ad55718057e454 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBKeyPath.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBKeyPath.cpp
@@ -134,22 +134,22 @@ IDBKeyPath::IDBKeyPath(const StringOrStringSequence& keyPath)
}
}
-IDBKeyPath::IDBKeyPath(const WebIDBKeyPath& keyPath)
+IDBKeyPath::IDBKeyPath(const indexed_db::mojom::blink::KeyPathPtr& keyPath)
{
- switch (keyPath.keyPathType()) {
- case WebIDBKeyPathTypeNull:
+ switch (keyPath->type) {
+ case indexed_db::mojom::blink::KeyPathType::NONE:
m_type = NullType;
return;
- case WebIDBKeyPathTypeString:
+ case indexed_db::mojom::blink::KeyPathType::STRING:
m_type = StringType;
- m_string = keyPath.string();
+ m_string = keyPath->data->get_str();
return;
- case WebIDBKeyPathTypeArray:
+ case indexed_db::mojom::blink::KeyPathType::ARRAY:
m_type = ArrayType;
- for (size_t i = 0, size = keyPath.array().size(); i < size; ++i)
- m_array.append(keyPath.array()[i]);
+ for (size_t i = 0, size = keyPath->data->get_arr().size(); i < size; ++i)
+ m_array.append(keyPath->data->get_arr()[i]);
return;
}
ASSERT_NOT_REACHED();
« no previous file with comments | « third_party/WebKit/Source/modules/indexeddb/IDBKeyPath.h ('k') | third_party/WebKit/Source/modules/indexeddb/IDBKeyRange.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698