Bug 124597 - Consolidate IDBBackingStore*Interface and IDBBackingStore*LevelDB
Summary: Consolidate IDBBackingStore*Interface and IDBBackingStore*LevelDB
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Brady Eidson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-19 12:26 PST by Brady Eidson
Modified: 2013-11-19 13:21 PST (History)
3 users (show)

See Also:


Attachments
Patch v1 (61.74 KB, patch)
2013-11-19 12:39 PST, Brady Eidson
ap: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brady Eidson 2013-11-19 12:26:45 PST
Consolidate IDBBackingStore*Interface and IDBBackingStore*LevelDB

There's no longer a need for the Interface abstractions, as the LevelDB implementations will be the only ones.
Comment 1 Brady Eidson 2013-11-19 12:39:01 PST
Created attachment 217319 [details]
Patch v1
Comment 2 WebKit Commit Bot 2013-11-19 12:40:11 PST
Attachment 217319 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCore/Modules/indexeddb/IDBBackingStoreCursorInterface.h', u'Source/WebCore/Modules/indexeddb/IDBBackingStoreInterface.h', u'Source/WebCore/Modules/indexeddb/IDBBackingStoreTransactionInterface.h', u'Source/WebCore/Modules/indexeddb/IDBServerConnection.h', u'Source/WebCore/Modules/indexeddb/leveldb/IDBBackingStoreCursorLevelDB.h', u'Source/WebCore/Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.cpp', u'Source/WebCore/Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.h', u'Source/WebCore/Modules/indexeddb/leveldb/IDBBackingStoreTransactionLevelDB.h', u'Source/WebCore/Modules/indexeddb/leveldb/IDBIndexWriterLevelDB.cpp', u'Source/WebCore/Modules/indexeddb/leveldb/IDBIndexWriterLevelDB.h', u'Source/WebCore/Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.cpp', u'Source/WebCore/WebCore.xcodeproj/project.pbxproj']" exit_code: 1
Source/WebCore/Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.cpp:545:  Extra space before ( in function call  [whitespace/parens] [4]
Source/WebCore/Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.cpp:663:  Extra space before ( in function call  [whitespace/parens] [4]
Source/WebCore/Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.h:79:  Extra space before ( in function call  [whitespace/parens] [4]
Source/WebCore/Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.h:80:  Extra space before ( in function call  [whitespace/parens] [4]
Total errors found: 4 in 8 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Alexey Proskuryakov 2013-11-19 12:42:51 PST
Comment on attachment 217319 [details]
Patch v1

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

> Source/WebCore/Modules/indexeddb/leveldb/IDBBackingStoreCursorLevelDB.h:60
> +    virtual PassRefPtr<IDBKey> key() const { return m_currentKey; }

Why PassRefPtr?!

> Source/WebCore/Modules/indexeddb/leveldb/IDBBackingStoreCursorLevelDB.h:68
> +    virtual PassRefPtr<IDBKey> primaryKey() const { return m_currentKey; }
> +    virtual PassRefPtr<SharedBuffer> value() const = 0;

Ditto.
Comment 4 Brady Eidson 2013-11-19 12:54:01 PST
(In reply to comment #3)
> (From update of attachment 217319 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=217319&action=review
> 
> > Source/WebCore/Modules/indexeddb/leveldb/IDBBackingStoreCursorLevelDB.h:60
> > +    virtual PassRefPtr<IDBKey> key() const { return m_currentKey; }
> 
> Why PassRefPtr?!
> 
> > Source/WebCore/Modules/indexeddb/leveldb/IDBBackingStoreCursorLevelDB.h:68
> > +    virtual PassRefPtr<IDBKey> primaryKey() const { return m_currentKey; }
> > +    virtual PassRefPtr<SharedBuffer> value() const = 0;
> 
> Ditto.

Great question - It always was from the original LevelDB implementors, and I think it was just wrong.  Not sure i should change it, though, without the ability to test.
Comment 5 Brady Eidson 2013-11-19 13:21:32 PST
http://trac.webkit.org/changeset/159517