| Index: third_party/WebKit/Source/modules/indexeddb/IDBObserver.cpp
|
| diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBObserver.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBObserver.cpp
|
| index 8d991f2c0acc1c0a223a8429e99129e282a0df8c..2a7aa774ba0b2304b985d3595dbf3c0528028e64 100644
|
| --- a/third_party/WebKit/Source/modules/indexeddb/IDBObserver.cpp
|
| +++ b/third_party/WebKit/Source/modules/indexeddb/IDBObserver.cpp
|
| @@ -10,6 +10,7 @@
|
| #include "core/dom/ExceptionCode.h"
|
| #include "modules/IndexedDBNames.h"
|
| #include "modules/indexeddb/IDBDatabase.h"
|
| +#include "modules/indexeddb/IDBDatabaseProxy.h"
|
| #include "modules/indexeddb/IDBObserverCallback.h"
|
| #include "modules/indexeddb/IDBObserverChanges.h"
|
| #include "modules/indexeddb/IDBObserverInit.h"
|
| @@ -53,15 +54,19 @@ void IDBObserver::observe(IDBDatabase* database, IDBTransaction* transaction, Ex
|
| return;
|
| }
|
|
|
| +// TODO(cmumford): Implement observers. This is still under construction.
|
| +#if 0
|
| std::unique_ptr<WebIDBObserverImpl> observer = WebIDBObserverImpl::create(this);
|
| WebIDBObserverImpl* observerPtr = observer.get();
|
| int32_t observerId = database->backend()->addObserver(std::move(observer), transaction->id());
|
| m_observerIds.add(observerId, database);
|
| observerPtr->setId(observerId);
|
| +#endif
|
| }
|
|
|
| void IDBObserver::unobserve(IDBDatabase* database, ExceptionState& exceptionState)
|
| {
|
| +#if 0
|
| if (!database->backend()) {
|
| exceptionState.throwDOMException(InvalidStateError, IDBDatabase::databaseClosedErrorMessage);
|
| return;
|
| @@ -76,6 +81,7 @@ void IDBObserver::unobserve(IDBDatabase* database, ExceptionState& exceptionStat
|
|
|
| if (!observerIdsToRemove.isEmpty())
|
| database->backend()->removeObservers(observerIdsToRemove);
|
| +#endif
|
| }
|
|
|
| void IDBObserver::removeObserver(int32_t id)
|
|
|