summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authorandreip@chromium.org <andreip@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-24 13:03:26 +0000
committerandreip@chromium.org <andreip@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-24 13:03:26 +0000
commit5bbe2929da7a74e7ceeffcfedee1981adcd3a7b2 (patch)
tree772f86bdb65c898ca728fe35774417a09fe0972d /chrome/renderer
parent507902277eebc76641b21243039865f61fd7f13a (diff)
downloadchromium_src-5bbe2929da7a74e7ceeffcfedee1981adcd3a7b2.zip
chromium_src-5bbe2929da7a74e7ceeffcfedee1981adcd3a7b2.tar.gz
chromium_src-5bbe2929da7a74e7ceeffcfedee1981adcd3a7b2.tar.bz2
Revert "Revert 60457 - Adds IDBFactory::didCompleteEventsForTransaction plumbing"
This reverts commit b1e231ca824b2fb9a96bffc04f26eae336ff6ed5. Also disable the transaction_get.html test, added in this CL. BUG= TEST= Review URL: http://codereview.chromium.org/3466018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60460 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/renderer_webidbfactory_impl.cc10
-rw-r--r--chrome/renderer/renderer_webidbfactory_impl.h2
-rw-r--r--chrome/renderer/renderer_webidbobjectstore_impl.cc2
-rw-r--r--chrome/renderer/renderer_webidbtransaction_impl.cc9
-rw-r--r--chrome/renderer/renderer_webidbtransaction_impl.h1
5 files changed, 12 insertions, 12 deletions
diff --git a/chrome/renderer/renderer_webidbfactory_impl.cc b/chrome/renderer/renderer_webidbfactory_impl.cc
index f06e190..776c6f1 100644
--- a/chrome/renderer/renderer_webidbfactory_impl.cc
+++ b/chrome/renderer/renderer_webidbfactory_impl.cc
@@ -33,13 +33,3 @@ void RendererWebIDBFactoryImpl::open(
dispatcher->RequestIDBFactoryOpen(
name, description, callbacks, origin.databaseIdentifier(), web_frame);
}
-
-void RendererWebIDBFactoryImpl::abortPendingTransactions(
- const WebKit::WebVector<int>& pendingIDs) {
- std::vector<int> ids;
- for (size_t i = 0; i < pendingIDs.size(); ++i) {
- ids.push_back(pendingIDs[i]);
- }
- RenderThread::current()->Send(
- new ViewHostMsg_IDBFactoryAbortPendingTransactions(ids));
-}
diff --git a/chrome/renderer/renderer_webidbfactory_impl.h b/chrome/renderer/renderer_webidbfactory_impl.h
index 3953249..de4d4ee 100644
--- a/chrome/renderer/renderer_webidbfactory_impl.h
+++ b/chrome/renderer/renderer_webidbfactory_impl.h
@@ -29,8 +29,6 @@ class RendererWebIDBFactoryImpl : public WebKit::WebIDBFactory {
WebKit::WebIDBCallbacks* callbacks,
const WebKit::WebSecurityOrigin& origin, WebKit::WebFrame* web_frame,
const WebKit::WebString& dataDir);
- virtual void abortPendingTransactions(
- const WebKit::WebVector<int>& pendingIDs);
};
#endif // CHROME_RENDERER_RENDERER_WEBIDBFACTORY_IMPL_H_
diff --git a/chrome/renderer/renderer_webidbobjectstore_impl.cc b/chrome/renderer/renderer_webidbobjectstore_impl.cc
index 28c14f4..ce456dd1 100644
--- a/chrome/renderer/renderer_webidbobjectstore_impl.cc
+++ b/chrome/renderer/renderer_webidbobjectstore_impl.cc
@@ -14,6 +14,7 @@
#include "third_party/WebKit/WebKit/chromium/public/WebDOMStringList.h"
#include "third_party/WebKit/WebKit/chromium/public/WebIDBKey.h"
#include "third_party/WebKit/WebKit/chromium/public/WebIDBKeyRange.h"
+#include "third_party/WebKit/WebKit/chromium/public/WebIDBTransaction.h"
#include "third_party/WebKit/WebKit/chromium/public/WebSerializedScriptValue.h"
#include "third_party/WebKit/WebKit/chromium/public/WebString.h"
@@ -23,6 +24,7 @@ using WebKit::WebIDBCallbacks;
using WebKit::WebIDBKeyRange;
using WebKit::WebIDBIndex;
using WebKit::WebIDBKey;
+using WebKit::WebIDBTransaction;
using WebKit::WebSerializedScriptValue;
using WebKit::WebString;
diff --git a/chrome/renderer/renderer_webidbtransaction_impl.cc b/chrome/renderer/renderer_webidbtransaction_impl.cc
index dddb2d2..3aa2387 100644
--- a/chrome/renderer/renderer_webidbtransaction_impl.cc
+++ b/chrome/renderer/renderer_webidbtransaction_impl.cc
@@ -40,6 +40,8 @@ WebIDBObjectStore* RendererWebIDBTransactionImpl::objectStore(
RenderThread::current()->Send(
new ViewHostMsg_IDBTransactionObjectStore(
idb_transaction_id_, name, &object_store_id));
+ if (!object_store_id)
+ return NULL;
return new RendererWebIDBObjectStoreImpl(object_store_id);
}
@@ -49,6 +51,13 @@ void RendererWebIDBTransactionImpl::abort()
idb_transaction_id_));
}
+void RendererWebIDBTransactionImpl::didCompleteTaskEvents()
+{
+ RenderThread::current()->Send(
+ new ViewHostMsg_IDBTransactionDidCompleteTaskEvents(
+ idb_transaction_id_));
+}
+
int RendererWebIDBTransactionImpl::id() const
{
return idb_transaction_id_;
diff --git a/chrome/renderer/renderer_webidbtransaction_impl.h b/chrome/renderer/renderer_webidbtransaction_impl.h
index 4369104..d1f74fb 100644
--- a/chrome/renderer/renderer_webidbtransaction_impl.h
+++ b/chrome/renderer/renderer_webidbtransaction_impl.h
@@ -23,6 +23,7 @@ class RendererWebIDBTransactionImpl : public WebKit::WebIDBTransaction {
virtual int mode() const;
virtual WebKit::WebIDBObjectStore* objectStore(const WebKit::WebString& name);
virtual void abort();
+ virtual void didCompleteTaskEvents();
virtual int id() const;
virtual void setCallbacks(WebKit::WebIDBTransactionCallbacks*);