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

Issue 10204003: Use WebIDBKeyPath type in WebKit API, implement IndexedDBKeyPath type. (Closed)

Created:
8 years, 8 months ago by jsbell
Modified:
8 years, 7 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, pam+watch_chromium.org, alecflett
Visibility:
Public.

Description

Use WebIDBKeyPath type in WebKit API, implement IndexedDBKeyPath type. IndexedDB allows key paths to be strings or arrays of strings (or null, for object stores). Implement the new WebKit API that uses a dedicated type instead of strings, and implement appropriate IPC plumbing. This change is dependent on: https://webkit.org/b/84631 R=darin@chromium.org,tkent@chromium.org,dgrogan@chromium.org,michaeln@chromium.org BUG=112308 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=134581

Patch Set 1 #

Total comments: 5

Patch Set 2 : Formatting nit. #

Total comments: 10

Patch Set 3 : Review feedback #

Total comments: 1

Patch Set 4 : Delete stray space. #

Total comments: 6

Patch Set 5 : Move IndexedDBKeyPath to content namespace, formatting nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+340 lines, -145 lines) Patch
M content/browser/in_process_webkit/browser_webkitplatformsupport_impl.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/in_process_webkit/browser_webkitplatformsupport_impl.cc View 1 2 3 4 4 chunks +7 lines, -5 lines 0 comments Download
M content/browser/in_process_webkit/indexed_db_dispatcher_host.h View 1 2 3 4 4 chunks +4 lines, -3 lines 0 comments Download
M content/browser/in_process_webkit/indexed_db_dispatcher_host.cc View 1 2 3 4 4 chunks +15 lines, -6 lines 0 comments Download
M content/browser/in_process_webkit/indexed_db_key_utility_client.h View 1 2 3 4 4 chunks +3 lines, -3 lines 0 comments Download
M content/browser/in_process_webkit/indexed_db_key_utility_client.cc View 1 2 3 4 11 chunks +12 lines, -12 lines 0 comments Download
M content/browser/indexed_db/idbbindingutilities_browsertest.cc View 1 2 3 4 17 chunks +33 lines, -35 lines 0 comments Download
A content/common/indexed_db/indexed_db_key_path.h View 1 2 3 4 1 chunk +45 lines, -0 lines 0 comments Download
A content/common/indexed_db/indexed_db_key_path.cc View 1 2 3 4 1 chunk +78 lines, -0 lines 0 comments Download
M content/common/indexed_db/indexed_db_messages.h View 1 2 3 4 5 chunks +5 lines, -4 lines 0 comments Download
M content/common/indexed_db/indexed_db_param_traits.h View 1 2 3 4 2 chunks +9 lines, -0 lines 0 comments Download
M content/common/indexed_db/indexed_db_param_traits.cc View 1 2 3 4 2 chunks +65 lines, -0 lines 0 comments Download
M content/common/indexed_db/proxy_webidbdatabase_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M content/common/indexed_db/proxy_webidbdatabase_impl.cc View 1 2 3 4 3 chunks +4 lines, -2 lines 0 comments Download
M content/common/indexed_db/proxy_webidbindex_impl.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/common/indexed_db/proxy_webidbindex_impl.cc View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M content/common/indexed_db/proxy_webidbobjectstore_impl.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/indexed_db/proxy_webidbobjectstore_impl.cc View 1 2 3 4 4 chunks +6 lines, -4 lines 0 comments Download
M content/common/utility_messages.h View 1 2 3 4 3 chunks +3 lines, -7 lines 0 comments Download
M content/content_common.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M content/ppapi_plugin/ppapi_webkitplatformsupport_impl.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/ppapi_plugin/ppapi_webkitplatformsupport_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.cc View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M content/utility/utility_thread_impl.h View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M content/utility/utility_thread_impl.cc View 1 2 3 4 3 chunks +4 lines, -7 lines 0 comments Download
M webkit/glue/idb_bindings.h View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M webkit/glue/idb_bindings.cc View 2 chunks +6 lines, -20 lines 0 comments Download
M webkit/support/test_webkit_platform_support.h View 1 chunk +2 lines, -2 lines 0 comments Download
M webkit/support/test_webkit_platform_support.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M webkit/tools/test_shell/test_shell_webkit_init.h View 1 chunk +2 lines, -2 lines 0 comments Download
M webkit/tools/test_shell/test_shell_webkit_init.cc View 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
michaeln
on the surface, plumbing looks correct to me http://codereview.chromium.org/10204003/diff/1/content/common/indexed_db/indexed_db_key_path.cc File content/common/indexed_db/indexed_db_key_path.cc (right): http://codereview.chromium.org/10204003/diff/1/content/common/indexed_db/indexed_db_key_path.cc#newcode54 content/common/indexed_db/indexed_db_key_path.cc:54: WebIDBKeyPath ...
8 years, 8 months ago (2012-04-23 23:26:18 UTC) #1
jsbell
http://codereview.chromium.org/10204003/diff/1/content/common/indexed_db/indexed_db_key_path.cc File content/common/indexed_db/indexed_db_key_path.cc (right): http://codereview.chromium.org/10204003/diff/1/content/common/indexed_db/indexed_db_key_path.cc#newcode54 content/common/indexed_db/indexed_db_key_path.cc:54: WebIDBKeyPath key_path = *this; On 2012/04/23 23:26:19, michaeln wrote: ...
8 years, 8 months ago (2012-04-23 23:33:21 UTC) #2
michaeln
http://codereview.chromium.org/10204003/diff/1/content/common/indexed_db/indexed_db_key_path.cc File content/common/indexed_db/indexed_db_key_path.cc (right): http://codereview.chromium.org/10204003/diff/1/content/common/indexed_db/indexed_db_key_path.cc#newcode54 content/common/indexed_db/indexed_db_key_path.cc:54: WebIDBKeyPath key_path = *this; On 2012/04/23 23:33:21, jsbell wrote: ...
8 years, 8 months ago (2012-04-24 01:30:39 UTC) #3
michaeln
modulo nits and a couple of questions, lgtm, but would be nice to wait for ...
8 years, 8 months ago (2012-04-24 21:08:52 UTC) #4
jsbell
Other nits look good, I'll comment if necessary after testing the various build permutations. But ...
8 years, 8 months ago (2012-04-24 22:17:47 UTC) #5
jsbell
http://codereview.chromium.org/10204003/diff/5001/content/common/indexed_db/indexed_db_key_path.cc File content/common/indexed_db/indexed_db_key_path.cc (right): http://codereview.chromium.org/10204003/diff/5001/content/common/indexed_db/indexed_db_key_path.cc#newcode43 content/common/indexed_db/indexed_db_key_path.cc:43: if (keyPath.type() == WebIDBKeyPath::ArrayType) { On 2012/04/24 21:08:53, michaeln ...
8 years, 8 months ago (2012-04-25 21:49:45 UTC) #6
jsbell
On 2012/04/24 21:08:52, michaeln wrote: > modulo nits and a couple of questions, lgtm, but ...
8 years, 8 months ago (2012-04-25 21:50:44 UTC) #7
jsbell
win_rel failures are unrelated tests. I'll give it another few tries, though. (One is an ...
8 years, 7 months ago (2012-04-27 15:38:18 UTC) #8
jsbell
+jam@ for content/ OWNERS review +tony@ for webkit/ OWNERS review please take a look
8 years, 7 months ago (2012-04-27 21:31:37 UTC) #9
tony
webkit LGTM http://codereview.chromium.org/10204003/diff/14001/webkit/glue/idb_bindings.h File webkit/glue/idb_bindings.h (right): http://codereview.chromium.org/10204003/diff/14001/webkit/glue/idb_bindings.h#newcode29 webkit/glue/idb_bindings.h:29: const WebKit:: WebIDBKeyPath& idb_key_path); Nit: looks like ...
8 years, 7 months ago (2012-04-27 22:52:21 UTC) #10
jsbell
On 2012/04/27 22:52:21, tony wrote: > Nit: looks like a stray space after WebKit::. Oops ...
8 years, 7 months ago (2012-04-27 23:46:26 UTC) #11
jam
content lgtm with nits http://codereview.chromium.org/10204003/diff/32001/content/common/indexed_db/indexed_db_key_path.cc File content/common/indexed_db/indexed_db_key_path.cc (right): http://codereview.chromium.org/10204003/diff/32001/content/common/indexed_db/indexed_db_key_path.cc#newcode46 content/common/indexed_db/indexed_db_key_path.cc:46: { nit: i think this ...
8 years, 7 months ago (2012-04-30 16:01:29 UTC) #12
jsbell
Filed http://crbug.com/125589 for migrating existing IDBKey* types (at least) to content. http://codereview.chromium.org/10204003/diff/32001/content/common/indexed_db/indexed_db_key_path.cc File content/common/indexed_db/indexed_db_key_path.cc (right): ...
8 years, 7 months ago (2012-04-30 18:08:23 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jsbell@chromium.org/10204003/39004
8 years, 7 months ago (2012-04-30 18:34:03 UTC) #14
commit-bot: I haz the power
8 years, 7 months ago (2012-04-30 20:18:34 UTC) #15
Change committed as 134581

Powered by Google App Engine
This is Rietveld 408576698