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

Issue 1074493002: IndexedDB: Added IDBObjectStore.getAll() implementation. (Closed)

Created:
5 years, 8 months ago by cmumford
Modified:
5 years, 7 months ago
Reviewers:
Tom Sepez, jsbell
CC:
cmumford, chromium-reviews, darin-cc_chromium.org, dgrogan, jam, jsbell+idb_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

IndexedDB: Added IDBObjectStore.getAll() implementation. This is the experimental IDBObjectStore.getAll implementation for retrieving multiple values in a single request as proposed in https://www.w3.org/2008/webapps/wiki/IndexedDatabaseFeatures In order to use run Chrome with: --enable-experimental-web-platform-features BUG=457450 Committed: https://crrev.com/b86405eb7d5712e42f96012724b975fbad6a74bb Cr-Commit-Position: refs/heads/master@{#329848}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Limiting response size to 10 MB #

Total comments: 11

Patch Set 3 : at(i) -> [i] #

Patch Set 4 : Using IPC::Channel::kMaximumMessageSize in lieu of 10MB. #

Total comments: 8

Patch Set 5 : message overhead constant, error handling in GetAllOperation, misc. #

Patch Set 6 : Blink public header files moved into subdirectory #

Patch Set 7 : Added unused indexId/keyOnly parameters to getAll. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+347 lines, -11 lines) Patch
M content/browser/indexed_db/indexed_db_callbacks.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_callbacks.cc View 1 2 3 2 chunks +61 lines, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_cursor.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_database.h View 1 2 3 4 5 6 2 chunks +10 lines, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_database.cc View 1 2 3 4 5 6 4 chunks +112 lines, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_dispatcher_host.h View 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_dispatcher_host.cc View 1 2 3 4 5 6 2 chunks +18 lines, -0 lines 0 comments Download
M content/child/indexed_db/indexed_db_dispatcher.h View 1 2 3 4 5 6 3 chunks +9 lines, -0 lines 0 comments Download
M content/child/indexed_db/indexed_db_dispatcher.cc View 1 2 3 4 5 6 8 chunks +64 lines, -10 lines 0 comments Download
M content/child/indexed_db/indexed_db_dispatcher_unittest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M content/child/indexed_db/webidbdatabase_impl.h View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M content/child/indexed_db/webidbdatabase_impl.cc View 1 2 3 4 5 6 1 chunk +19 lines, -0 lines 0 comments Download
M content/common/indexed_db/indexed_db_constants.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M content/common/indexed_db/indexed_db_key_range.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/common/indexed_db/indexed_db_key_range.cc View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M content/common/indexed_db/indexed_db_messages.h View 1 2 3 4 5 6 4 chunks +29 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (6 generated)
jsbell
Initial notes https://codereview.chromium.org/1074493002/diff/1/content/browser/indexed_db/indexed_db_database.cc File content/browser/indexed_db/indexed_db_database.cc (right): https://codereview.chromium.org/1074493002/diff/1/content/browser/indexed_db/indexed_db_database.cc#newcode768 content/browser/indexed_db/indexed_db_database.cc:768: } while (found_values.size() < static_cast<size_t>(max_count)); What's our ...
5 years, 8 months ago (2015-04-08 18:23:52 UTC) #2
cmumford
https://codereview.chromium.org/1074493002/diff/1/content/browser/indexed_db/indexed_db_database.cc File content/browser/indexed_db/indexed_db_database.cc (right): https://codereview.chromium.org/1074493002/diff/1/content/browser/indexed_db/indexed_db_database.cc#newcode768 content/browser/indexed_db/indexed_db_database.cc:768: } while (found_values.size() < static_cast<size_t>(max_count)); On 2015/04/08 at 18:23:52, ...
5 years, 8 months ago (2015-04-17 23:01:14 UTC) #3
jsbell
https://codereview.chromium.org/1074493002/diff/20001/content/browser/indexed_db/indexed_db_callbacks.cc File content/browser/indexed_db/indexed_db_callbacks.cc (right): https://codereview.chromium.org/1074493002/diff/20001/content/browser/indexed_db/indexed_db_callbacks.cc#newcode297 content/browser/indexed_db/indexed_db_callbacks.cc:297: &params->values.at(i).blob_or_file_info, Why at() rather than [] ? https://codereview.chromium.org/1074493002/diff/20001/content/browser/indexed_db/indexed_db_database.cc File ...
5 years, 7 months ago (2015-04-28 00:06:54 UTC) #4
jsbell
On 2015/04/17 23:01:14, cmumford wrote: > I added the size check & TODO for the ...
5 years, 7 months ago (2015-04-28 00:15:50 UTC) #5
cmumford
https://codereview.chromium.org/1074493002/diff/20001/content/browser/indexed_db/indexed_db_callbacks.cc File content/browser/indexed_db/indexed_db_callbacks.cc (right): https://codereview.chromium.org/1074493002/diff/20001/content/browser/indexed_db/indexed_db_callbacks.cc#newcode297 content/browser/indexed_db/indexed_db_callbacks.cc:297: &params->values.at(i).blob_or_file_info, On 2015/04/28 at 00:06:53, jsbell wrote: > Why ...
5 years, 7 months ago (2015-04-29 23:17:46 UTC) #6
jsbell
https://codereview.chromium.org/1074493002/diff/20001/content/browser/indexed_db/indexed_db_database.cc File content/browser/indexed_db/indexed_db_database.cc (right): https://codereview.chromium.org/1074493002/diff/20001/content/browser/indexed_db/indexed_db_database.cc#newcode749 content/browser/indexed_db/indexed_db_database.cc:749: const size_t max_size_estimate = 10 * 1024 * 1024; ...
5 years, 7 months ago (2015-04-30 00:01:15 UTC) #7
cmumford
5 years, 7 months ago (2015-04-30 15:24:54 UTC) #8
jsbell
looking pretty good! https://codereview.chromium.org/1074493002/diff/60001/content/browser/indexed_db/indexed_db_database.cc File content/browser/indexed_db/indexed_db_database.cc (right): https://codereview.chromium.org/1074493002/diff/60001/content/browser/indexed_db/indexed_db_database.cc#newcode758 content/browser/indexed_db/indexed_db_database.cc:758: scoped_ptr<IndexedDBBackingStore::Cursor> backing_store_cursor; Could just call this ...
5 years, 7 months ago (2015-04-30 17:28:19 UTC) #9
cmumford
https://codereview.chromium.org/1074493002/diff/60001/content/browser/indexed_db/indexed_db_database.cc File content/browser/indexed_db/indexed_db_database.cc (right): https://codereview.chromium.org/1074493002/diff/60001/content/browser/indexed_db/indexed_db_database.cc#newcode758 content/browser/indexed_db/indexed_db_database.cc:758: scoped_ptr<IndexedDBBackingStore::Cursor> backing_store_cursor; On 2015/04/30 at 17:28:18, jsbell wrote: > ...
5 years, 7 months ago (2015-04-30 22:30:13 UTC) #10
jsbell
lgtm Please update the CL description with more context before landing.
5 years, 7 months ago (2015-05-04 22:29:38 UTC) #11
cmumford
Adding tsepez@ for security review of content/common/indexed_db/indexed_db_messages.h
5 years, 7 months ago (2015-05-13 18:52:36 UTC) #13
Tom Sepez
Messages LGTM.
5 years, 7 months ago (2015-05-13 21:09:05 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1074493002/120001
5 years, 7 months ago (2015-05-14 01:49:27 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/88781)
5 years, 7 months ago (2015-05-14 02:00:58 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1074493002/120001
5 years, 7 months ago (2015-05-14 13:37:56 UTC) #21
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 7 months ago (2015-05-14 14:50:49 UTC) #22
commit-bot: I haz the power
5 years, 7 months ago (2015-05-14 14:51:32 UTC) #23
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/b86405eb7d5712e42f96012724b975fbad6a74bb
Cr-Commit-Position: refs/heads/master@{#329848}

Powered by Google App Engine
This is Rietveld 408576698