Bug 124193

Summary: Introduce IDBServerConnection (and start moving things to it)
Product: WebKit Reporter: Brady Eidson <beidson>
Component: WebCore Misc.Assignee: Brady Eidson <beidson>
Status: RESOLVED FIXED    
Severity: Normal CC: alecflett, commit-queue, eflews.bot, gtk-ews, gyuyoung.kim, jsbell, rakuco, xan.lopez
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch v1
eflews.bot: commit-queue-
Patch v2 - Implement dtor
eflews.bot: commit-queue-
Patch v3 ap: review+

Description Brady Eidson 2013-11-12 00:09:29 PST
Introduce IDBServerConnection (and start moving things to it)

IDBServerConnection will be a purely asynchronous interface for the database connection, transactions, and cursors.

It's interface will be 100% asynchronous and callback based.

Eventually none of the IDB*Backend classes will need IDBBackingStore* classes at all, and will use IDBServerConnection instead
Comment 1 Brady Eidson 2013-11-12 00:13:57 PST
Created attachment 216644 [details]
Patch v1
Comment 2 EFL EWS Bot 2013-11-12 00:19:52 PST
Comment on attachment 216644 [details]
Patch v1 

Attachment 216644 [details] did not pass efl-ews (efl):
Output: http://webkit-queues.appspot.com/results/22749454
Comment 3 Brady Eidson 2013-11-12 00:22:33 PST
Created attachment 216645 [details]
Patch v2 - Implement dtor
Comment 4 EFL EWS Bot 2013-11-12 00:32:08 PST
Comment on attachment 216645 [details]
Patch v2 - Implement dtor

Attachment 216645 [details] did not pass efl-ews (efl):
Output: http://webkit-queues.appspot.com/results/22699675
Comment 5 kov's GTK+ EWS bot 2013-11-12 00:41:00 PST
Comment on attachment 216645 [details]
Patch v2 - Implement dtor

Attachment 216645 [details] did not pass gtk-ews (gtk):
Output: http://webkit-queues.appspot.com/results/22908597
Comment 6 Brady Eidson 2013-11-12 00:43:03 PST
Created attachment 216648 [details]
Patch v3
Comment 7 Alexey Proskuryakov 2013-11-12 13:12:16 PST
Comment on attachment 216648 [details]
Patch v3

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

> Source/WebCore/Modules/indexeddb/IDBServerConnection.h:40
> +// This interface is meant to provide a single asynchronous layer between the web-facing frontend

Does it provide what it means to provide? The comment should either be more assertive, or a specific FIXME.

> Source/WebCore/Modules/indexeddb/IDBServerConnection.h:42
> +// If the completion of an operation is important monitoring it must be through the use of a callback function.

Important?

> Source/WebCore/Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.cpp:29
> +#include "IDBBackingStoreInterface.h"

Is there a reason why this is outside ifdefs?

We usually put headers inside ifdefs in cpp files, and outside ifdefs in headers.
Comment 8 Brady Eidson 2013-11-12 13:30:06 PST
http://trac.webkit.org/changeset/159144