Bug 84208 - [Chromium] IndexedDB: Prep for changing keyPath return type
Summary: [Chromium] IndexedDB: Prep for changing keyPath return type
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Joshua Bell
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-17 16:31 PDT by Joshua Bell
Modified: 2012-04-19 17:58 PDT (History)
8 users (show)

See Also:


Attachments
Patch (6.78 KB, patch)
2012-04-17 16:34 PDT, Joshua Bell
no flags Details | Formatted Diff | Diff
Patch (5.14 KB, patch)
2012-04-18 09:51 PDT, Joshua Bell
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Bell 2012-04-17 16:31:28 PDT
[Chromium] IndexedDB: Prep for changing keyPath return type
Comment 1 Joshua Bell 2012-04-17 16:34:34 PDT
Created attachment 137631 [details]
Patch
Comment 2 WebKit Review Bot 2012-04-17 16:39:52 PDT
Please wait for approval from abarth@webkit.org, dglazkov@chromium.org, fishd@chromium.org, jamesr@chromium.org or tkent@chromium.org before submitting, as this patch contains changes to the Chromium public API. See also https://trac.webkit.org/wiki/ChromiumWebKitAPI.
Comment 3 Joshua Bell 2012-04-17 16:44:58 PDT
FYI, the Chromium side is at: https://chromiumcodereview.appspot.com/10041014

This will end up being a 5-part patch:
(1) WebKit prep: keyPath -> keyPathString rename
(2) Chromium prep: keyPath -> keyPathString rename
(3) WebKit API change: WebIDBKeyPath type addition to the API, with compat shims
(4) Chromium use of the new API
(5) implementation in WebCore of the new IDB functionality (and drop shims)
Comment 4 David Grogan 2012-04-17 18:44:16 PDT
Comment on attachment 137631 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=137631&action=review

LGTM

> Source/WebKit/chromium/src/WebIDBIndexImpl.h:48
> +    virtual WebString keyPathString() const OVERRIDE;

You probably already know, but you can leave off the OVERRIDEs for WebKit API overrides if they make commit engineering difficult.
Comment 5 James Robinson 2012-04-17 18:46:55 PDT
Comment on attachment 137631 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=137631&action=review

> Source/WebKit/chromium/public/WebIDBIndex.h:2
> + * Copyright (C) 2012 Google Inc. All rights reserved.

we don't do this in WebKit. leave the date alone

>> Source/WebKit/chromium/src/WebIDBIndexImpl.h:48
>> +    virtual WebString keyPathString() const OVERRIDE;
> 
> You probably already know, but you can leave off the OVERRIDEs for WebKit API overrides if they make commit engineering difficult.

we typically don't use OVERRIDE for things in the WebKit API.  The hard rule is that if the declaration you are overriding is in a different repository, do not use OVERRIDE cos it'll make staging changes difficult. In this case, keyPathString() is in the same repo so that shouldn't be an issue - but we also say to favor consistency, which would be a strike against using OVERRIDE here.  So on balance I think you should not add OVERRIDE here unless you want to do it everywhere
Comment 6 Joshua Bell 2012-04-18 09:51:45 PDT
Created attachment 137714 [details]
Patch
Comment 7 Joshua Bell 2012-04-18 09:52:42 PDT
Oops, thanks. So eager to be done I was dotting t's and crossing i's. :)

Take another look?
Comment 8 Joshua Bell 2012-04-18 14:21:24 PDT
@abarth or @fishd - can you take a look?
Comment 9 Joshua Bell 2012-04-18 15:22:07 PDT
or dglazkov@ ?
Comment 10 Kent Tamura 2012-04-19 16:21:03 PDT
Comment on attachment 137714 [details]
Patch

ok
Comment 11 WebKit Review Bot 2012-04-19 17:58:28 PDT
Comment on attachment 137714 [details]
Patch

Clearing flags on attachment: 137714

Committed r114708: <http://trac.webkit.org/changeset/114708>
Comment 12 WebKit Review Bot 2012-04-19 17:58:33 PDT
All reviewed patches have been landed.  Closing bug.