Changeset 80468 in webkit


Ignore:
Timestamp:
Mar 7, 2011 7:38:43 AM (13 years ago)
Author:
andreip@google.com
Message:

2011-03-07 Andrei Popescu <andreip@google.com>

Reviewed by Steve Block.

IDBRequest::onSuccess(IDBObjectStore*) should be removed as it is unused.
IDBObjectStore objects used to be created asynchronously, so we needed
this method to be invoked, with the new object store as the parameter,
whenever the creation succeeded. The spec has changed so that IDBObjectStore
objects are created synchronously, so this method is no longer needed.
https://bugs.webkit.org/show_bug.cgi?id=55777

No new tests, just refactoring.

  • storage/IDBCallbacks.h:
  • storage/IDBRequest.cpp:
  • storage/IDBRequest.h:

2011-03-07 Andrei Popescu <andreip@google.com>

Reviewed by Steve Block.

IDBRequest::onSuccess(IDBObjectStore*) should be removed as it is unused.
https://bugs.webkit.org/show_bug.cgi?id=55777

  • src/IDBCallbacksProxy.cpp:
  • src/IDBCallbacksProxy.h:
  • src/WebIDBCallbacksImpl.cpp:
  • src/WebIDBCallbacksImpl.h:
Location:
trunk/Source
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r80467 r80468  
     12011-03-07  Andrei Popescu  <andreip@google.com>
     2
     3        Reviewed by Steve Block.
     4
     5        IDBRequest::onSuccess(IDBObjectStore*) should be removed as it is unused.
     6        IDBObjectStore objects used to be created asynchronously, so we needed
     7        this method to be invoked, with the new object store as the parameter,
     8        whenever the creation succeeded. The spec has changed so that IDBObjectStore
     9        objects are created synchronously, so this method is no longer needed.
     10        https://bugs.webkit.org/show_bug.cgi?id=55777
     11
     12        No new tests, just refactoring.
     13
     14        * storage/IDBCallbacks.h:
     15        * storage/IDBRequest.cpp:
     16        * storage/IDBRequest.h:
     17
    1182011-03-04  Steve Block  <steveblock@google.com>
    219
  • trunk/Source/WebCore/storage/IDBCallbacks.h

    r78752 r80468  
    5454    virtual void onSuccess(PassRefPtr<IDBIndexBackendInterface>) = 0;
    5555    virtual void onSuccess(PassRefPtr<IDBKey>) = 0;
    56     virtual void onSuccess(PassRefPtr<IDBObjectStoreBackendInterface>) = 0;
    5756    virtual void onSuccess(PassRefPtr<IDBTransactionBackendInterface>) = 0;
    5857    virtual void onSuccess(PassRefPtr<SerializedScriptValue>) = 0;
  • trunk/Source/WebCore/storage/IDBRequest.cpp

    r80183 r80468  
    4141#include "IDBEventDispatcher.h"
    4242#include "IDBIndex.h"
    43 #include "IDBObjectStore.h"
    4443#include "IDBPendingTransactionMonitor.h"
    4544#include "IDBTransaction.h"
     
    217216    m_result = IDBAny::create(idbKey);
    218217    enqueueEvent(createSuccessEvent());
    219 }
    220 
    221 void IDBRequest::onSuccess(PassRefPtr<IDBObjectStoreBackendInterface> backend)
    222 {
    223     ASSERT_NOT_REACHED(); // FIXME: This method should go away.
    224218}
    225219
  • trunk/Source/WebCore/storage/IDBRequest.h

    r80171 r80468  
    7979    virtual void onSuccess(PassRefPtr<IDBIndexBackendInterface>);
    8080    virtual void onSuccess(PassRefPtr<IDBKey>);
    81     virtual void onSuccess(PassRefPtr<IDBObjectStoreBackendInterface>);
    8281    virtual void onSuccess(PassRefPtr<IDBTransactionBackendInterface>);
    8382    virtual void onSuccess(PassRefPtr<SerializedScriptValue>);
  • trunk/Source/WebKit/chromium/ChangeLog

    r80461 r80468  
     12011-03-07  Andrei Popescu  <andreip@google.com>
     2
     3        Reviewed by Steve Block.
     4
     5        IDBRequest::onSuccess(IDBObjectStore*) should be removed as it is unused.
     6        https://bugs.webkit.org/show_bug.cgi?id=55777
     7
     8        * src/IDBCallbacksProxy.cpp:
     9        * src/IDBCallbacksProxy.h:
     10        * src/WebIDBCallbacksImpl.cpp:
     11        * src/WebIDBCallbacksImpl.h:
     12
    1132011-03-07  Sheriff Bot  <webkit.review.bot@gmail.com>
    214
  • trunk/Source/WebKit/chromium/src/IDBCallbacksProxy.cpp

    r78752 r80468  
    3838#include "WebIDBIndexImpl.h"
    3939#include "WebIDBKey.h"
    40 #include "WebIDBObjectStoreImpl.h"
    4140#include "WebIDBTransactionImpl.h"
    4241#include "WebSerializedScriptValue.h"
     
    8584}
    8685
    87 void IDBCallbacksProxy::onSuccess(PassRefPtr<IDBObjectStoreBackendInterface> backend)
    88 {
    89     m_callbacks->onSuccess(new WebKit::WebIDBObjectStoreImpl(backend));
    90 }
    91 
    9286void IDBCallbacksProxy::onSuccess(PassRefPtr<IDBTransactionBackendInterface> backend)
    9387{
  • trunk/Source/WebKit/chromium/src/IDBCallbacksProxy.h

    r78752 r80468  
    5353    virtual void onSuccess(PassRefPtr<IDBIndexBackendInterface>);
    5454    virtual void onSuccess(PassRefPtr<IDBKey>);
    55     virtual void onSuccess(PassRefPtr<IDBObjectStoreBackendInterface>);
    5655    virtual void onSuccess(PassRefPtr<IDBTransactionBackendInterface>);
    5756    virtual void onSuccess(PassRefPtr<SerializedScriptValue>);
  • trunk/Source/WebKit/chromium/src/WebIDBCallbacksImpl.cpp

    r78752 r80468  
    3333#include "IDBIndexBackendProxy.h"
    3434#include "IDBKey.h"
    35 #include "IDBObjectStoreProxy.h"
    3635#include "IDBTransactionBackendProxy.h"
    3736#include "WebIDBCallbacks.h"
     
    4039#include "WebIDBIndex.h"
    4140#include "WebIDBKey.h"
    42 #include "WebIDBObjectStore.h"
    4341#include "WebIDBTransaction.h"
    4442#include "WebSerializedScriptValue.h"
     
    8280}
    8381
    84 void WebIDBCallbacksImpl::onSuccess(WebKit::WebIDBObjectStore* webKitInstance)
    85 {
    86     m_callbacks->onSuccess(IDBObjectStoreProxy::create(webKitInstance));
    87 }
    88 
    8982void WebIDBCallbacksImpl::onSuccess(WebKit::WebIDBTransaction* webKitInstance)
    9083{
  • trunk/Source/WebKit/chromium/src/WebIDBCallbacksImpl.h

    r78752 r80468  
    4747    virtual void onSuccess(const WebKit::WebIDBKey&);
    4848    virtual void onSuccess(WebKit::WebIDBIndex*);
    49     virtual void onSuccess(WebKit::WebIDBObjectStore*);
    5049    virtual void onSuccess(WebKit::WebIDBTransaction*);
    5150    virtual void onSuccess(const WebKit::WebSerializedScriptValue&);
Note: See TracChangeset for help on using the changeset viewer.