WebDatabase open interface methods

There seems to be no difference between the openDatabase methods  
defined in WindowDatabase and WorkerUtilsDatabase.

Is it possible to restructure these interfaces differently so that  
there is less redundancy?

My proposal is the following IDL:
[Supplemental, NoInterfaceObject]
interface DatabaseAsyncOpen {
   Database openDatabase(in DOMString name, in DOMString version, in  
DOMString displayName, in unsigned long estimatedSize, in optional  
DatabaseCallback creationCallback);
};
Window implements DatabaseAsyncOpen;

[Supplemental, NoInterfaceObject]
interface DatabaseSyncOpen {
   DatabaseSync openDatabaseSync(in DOMString name, in DOMString  
version, in DOMString displayName, in unsigned long estimatedSize, in  
optional DatabaseCallback creationCallback);
};
WorkerUtils implements DatabaseSyncOpen;
WorkerUtils implements DatabaseAsyncOpen;

Nikunj
http://o-micron.blogspot.com

Received on Monday, 31 August 2009 18:13:53 UTC