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

Unified Diff: content/child/indexed_db/indexed_db_dispatcher.cc

Issue 320833002: [IndexedDB] Use consistent enums on both sides of IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase patch. Created 6 years, 6 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: content/child/indexed_db/indexed_db_dispatcher.cc
diff --git a/content/child/indexed_db/indexed_db_dispatcher.cc b/content/child/indexed_db/indexed_db_dispatcher.cc
index e814cc87420c0438be493727378c724fa642527a..cfdd1d3593459212f30af8bd3254e8c2bf312fb2 100644
--- a/content/child/indexed_db/indexed_db_dispatcher.cc
+++ b/content/child/indexed_db/indexed_db_dispatcher.cc
@@ -283,7 +283,7 @@ void IndexedDBDispatcher::RequestIDBDatabaseCreateTransaction(
int64 transaction_id,
WebIDBDatabaseCallbacks* database_callbacks_ptr,
WebVector<long long> object_store_ids,
- WebIDBDatabase::TransactionMode mode) {
+ blink::WebIDBTransactionMode mode) {
scoped_ptr<WebIDBDatabaseCallbacks> database_callbacks(
database_callbacks_ptr);
IndexedDBHostMsg_DatabaseCreateTransaction_Params params;
@@ -327,11 +327,10 @@ void IndexedDBDispatcher::RequestIDBDatabasePut(
const WebData& value,
const blink::WebVector<WebBlobInfo>& web_blob_info,
const IndexedDBKey& key,
- WebIDBDatabase::PutMode put_mode,
+ blink::WebIDBPutMode put_mode,
WebIDBCallbacks* callbacks,
const WebVector<long long>& index_ids,
const WebVector<WebVector<WebIDBKey> >& index_keys) {
-
if (value.size() + key.size_estimate() > kMaxIDBValueSizeInBytes) {
callbacks->onError(WebIDBDatabaseError(
blink::WebIDBDatabaseExceptionUnknownError,
@@ -391,9 +390,9 @@ void IndexedDBDispatcher::RequestIDBDatabaseOpenCursor(
int64 object_store_id,
int64 index_id,
const IndexedDBKeyRange& key_range,
- WebIDBCursor::Direction direction,
+ blink::WebIDBCursorDirection direction,
bool key_only,
- WebIDBDatabase::TaskType task_type,
+ blink::WebIDBTaskType task_type,
WebIDBCallbacks* callbacks) {
ResetCursorPrefetchCaches(transaction_id, kAllCursors);
IndexedDBHostMsg_DatabaseOpenCursor_Params params;
« no previous file with comments | « content/child/indexed_db/indexed_db_dispatcher.h ('k') | content/child/indexed_db/indexed_db_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698