Bug 125872

Summary: DatabaseProcess: Pipe through object store IDs and transaction mode for "openTransaction"
Product: WebKit Reporter: Brady Eidson <beidson>
Component: WebKit2Assignee: Brady Eidson <beidson>
Status: RESOLVED FIXED    
Severity: Normal CC: alecflett, commit-queue, jsbell
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 124521    
Attachments:
Description Flags
Patch v1 ap: review+

Description Brady Eidson 2013-12-17 14:05:24 PST
DatabaseProcess: Pipe through object store IDs and transaction mode for "openTransaction"
Comment 1 Brady Eidson 2013-12-17 14:10:27 PST
Created attachment 219452 [details]
Patch v1
Comment 2 Alexey Proskuryakov 2013-12-17 15:00:38 PST
Comment on attachment 219452 [details]
Patch v1

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

> Source/WebCore/Modules/indexeddb/IndexedDB.h:41
>  enum TransactionMode {
> +    TransactionModeMinimum = 0,
>      TransactionReadOnly = 0,
>      TransactionReadWrite = 1,
> -    TransactionVersionChange = 2
> +    TransactionVersionChange = 2,
> +    TransactionModeMaximum = 2,
>  };

I'd use an enum class now:

enum class TransactionMode {
    ReadOnly = 0,
    ReadWrite = 1
    VersionChange = 2,
};
const unsigned maximumTransactionMode = 2;

(not sure why the minimum can't just be assumed 0).
Comment 3 Brady Eidson 2013-12-17 16:09:50 PST
http://trac.webkit.org/changeset/160732