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

Unified Diff: content/child/indexed_db/proxy_webidbfactory_impl.cc

Issue 17955002: Fix IndexedDB after r208777. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix unittests Created 7 years, 6 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
« no previous file with comments | « content/child/indexed_db/proxy_webidbfactory_impl.h ('k') | content/child/thread_safe_sender.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/indexed_db/proxy_webidbfactory_impl.cc
===================================================================
--- content/child/indexed_db/proxy_webidbfactory_impl.cc (revision 208777)
+++ content/child/indexed_db/proxy_webidbfactory_impl.cc (working copy)
@@ -4,8 +4,9 @@
#include "content/child/indexed_db/proxy_webidbfactory_impl.h"
-#include "content/child/child_thread.h"
+#include "content/child/thread_safe_sender.h"
#include "content/child/indexed_db/indexed_db_dispatcher.h"
+#include "third_party/WebKit/public/platform/WebCString.h"
#include "third_party/WebKit/public/platform/WebString.h"
using WebKit::WebIDBCallbacks;
@@ -15,7 +16,9 @@
namespace content {
-RendererWebIDBFactoryImpl::RendererWebIDBFactoryImpl() {
+RendererWebIDBFactoryImpl::RendererWebIDBFactoryImpl(
+ ThreadSafeSender* thread_safe_sender)
+ : thread_safe_sender_(thread_safe_sender) {
}
RendererWebIDBFactoryImpl::~RendererWebIDBFactoryImpl() {
@@ -26,7 +29,7 @@
const WebString& database_identifier,
const WebString& data_dir_unused) {
IndexedDBDispatcher* dispatcher =
- IndexedDBDispatcher::ThreadSpecificInstance();
+ IndexedDBDispatcher::ThreadSpecificInstance(thread_safe_sender_);
dispatcher->RequestIDBFactoryGetDatabaseNames(
callbacks, database_identifier.utf8());
}
@@ -42,7 +45,7 @@
// Don't send the data_dir. We know what we want on the Browser side of
// things.
IndexedDBDispatcher* dispatcher =
- IndexedDBDispatcher::ThreadSpecificInstance();
+ IndexedDBDispatcher::ThreadSpecificInstance(thread_safe_sender_);
dispatcher->RequestIDBFactoryOpen(
name, version, transaction_id, callbacks, database_callbacks,
database_identifier.utf8());
@@ -56,7 +59,7 @@
// Don't send the data_dir. We know what we want on the Browser side of
// things.
IndexedDBDispatcher* dispatcher =
- IndexedDBDispatcher::ThreadSpecificInstance();
+ IndexedDBDispatcher::ThreadSpecificInstance(thread_safe_sender_);
dispatcher->RequestIDBFactoryDeleteDatabase(
name, callbacks, database_identifier.utf8());
}
« no previous file with comments | « content/child/indexed_db/proxy_webidbfactory_impl.h ('k') | content/child/thread_safe_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698