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

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

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/IDBObjectStore.h
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.h b/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.h
index 038d6b2655889b8d7a73d6b9dd5e4c0c328ac362..0306af57493c15d1d5e6792d31866ec5e1819cb7 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.h
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.h
@@ -36,8 +36,6 @@
#include "modules/indexeddb/IDBMetadata.h"
#include "modules/indexeddb/IDBRequest.h"
#include "modules/indexeddb/IDBTransaction.h"
-#include "public/platform/modules/indexeddb/WebIDBCursor.h"
-#include "public/platform/modules/indexeddb/WebIDBDatabase.h"
#include "public/platform/modules/indexeddb/WebIDBTypes.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefPtr.h"
@@ -79,20 +77,17 @@ public:
IDBRequest* deleteFunction(ScriptState*, const ScriptValue& key, ExceptionState&);
IDBRequest* clear(ScriptState*, ExceptionState&);
- IDBIndex* createIndex(ScriptState* scriptState, const String& name, const StringOrStringSequence& keyPath, const IDBIndexParameters& options, ExceptionState& exceptionState)
- {
- return createIndex(scriptState, name, IDBKeyPath(keyPath), options, exceptionState);
- }
+ IDBIndex* createIndex(ScriptState*, const String& name, const StringOrStringSequence& keyPath, const IDBIndexParameters& options, ExceptionState&);
IDBIndex* index(const String& name, ExceptionState&);
void deleteIndex(const String& name, ExceptionState&);
IDBRequest* count(ScriptState*, const ScriptValue& range, ExceptionState&);
// Used by IDBCursor::update():
- IDBRequest* put(ScriptState*, WebIDBPutMode, IDBAny* source, const ScriptValue&, IDBKey*, ExceptionState&);
+ IDBRequest* put(ScriptState*, indexed_db::mojom::blink::PutMode, IDBAny* source, const ScriptValue&, IDBKey*, ExceptionState&);
// Used internally and by InspectorIndexedDBAgent:
- IDBRequest* openCursor(ScriptState*, IDBKeyRange*, WebIDBCursorDirection, WebIDBTaskType = WebIDBTaskTypeNormal);
+ IDBRequest* openCursor(ScriptState*, IDBKeyRange*, indexed_db::mojom::blink::CursorDirection, indexed_db::mojom::blink::TaskType = indexed_db::mojom::blink::TaskType::Normal);
void markDeleted() { m_deleted = true; }
bool isDeleted() const { return m_deleted; }
@@ -104,13 +99,12 @@ public:
typedef HeapVector<Member<IDBKey>> IndexKeys;
- WebIDBDatabase* backendDB() const;
+ IDBDatabaseProxy* backendDB() const;
private:
IDBObjectStore(const IDBObjectStoreMetadata&, IDBTransaction*);
- IDBIndex* createIndex(ScriptState*, const String& name, const IDBKeyPath&, const IDBIndexParameters&, ExceptionState&);
- IDBRequest* put(ScriptState*, WebIDBPutMode, IDBAny* source, const ScriptValue&, const ScriptValue& key, ExceptionState&);
+ IDBRequest* put(ScriptState*, indexed_db::mojom::blink::PutMode, IDBAny* source, const ScriptValue&, const ScriptValue& key, ExceptionState&);
int64_t findIndexId(const String& name) const;
bool containsIndex(const String& name) const

Powered by Google App Engine
This is Rietveld 408576698