Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1241)

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBObserver.cpp

Issue 1963293002: Replacing Indexed DB Chromium IPC with Mojo Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactoring after Passing URLRequestContextGetter. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698