diff options
author | andreip@chromium.org <andreip@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-23 10:01:52 +0000 |
---|---|---|
committer | andreip@chromium.org <andreip@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-23 10:01:52 +0000 |
commit | ed2aa501a278b67da52e9460b77eb9c52547f24b (patch) | |
tree | 0737c45dbd0623cf8debcb6b918e064effc339e9 /chrome/renderer/renderer_webidbtransaction_impl.cc | |
parent | 293a8fcd465165d0f35ff32db8417330e7f9bdce (diff) | |
download | chromium_src-ed2aa501a278b67da52e9460b77eb9c52547f24b.zip chromium_src-ed2aa501a278b67da52e9460b77eb9c52547f24b.tar.gz chromium_src-ed2aa501a278b67da52e9460b77eb9c52547f24b.tar.bz2 |
Fix compilation errors of 56862 by
- making the include path lower case in renderer_webidbransaction_impl.cc,
- adding a newline at the end of indexed_db_dispatcher.cc
- fixing the initialization order of member variables in
indexed_db_callbacks.h
Revert "Revert 56862 - Add transaction coordinator. Allow idle transactions to be aborted when their parent JS context finishes executing."
This reverts commit 6b25a433481c9127f8dbcbadc7f0685dc643d6de.
Review URL: http://codereview.chromium.org/3163028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57042 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/renderer_webidbtransaction_impl.cc')
-rw-r--r-- | chrome/renderer/renderer_webidbtransaction_impl.cc | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/chrome/renderer/renderer_webidbtransaction_impl.cc b/chrome/renderer/renderer_webidbtransaction_impl.cc new file mode 100644 index 0000000..8faf9a1 --- /dev/null +++ b/chrome/renderer/renderer_webidbtransaction_impl.cc @@ -0,0 +1,60 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "chrome/renderer/renderer_webidbtransaction_impl.h" + +#include "chrome/common/render_messages.h" +#include "chrome/renderer/render_thread.h" +#include "chrome/renderer/indexed_db_dispatcher.h" +#include "third_party/WebKit/WebKit/chromium/public/WebIDBObjectStore.h" +#include "third_party/WebKit/WebKit/chromium/public/WebIDBTransactionCallbacks.h" +#include "third_party/WebKit/WebKit/chromium/public/WebString.h" + +using WebKit::WebIDBObjectStore; +using WebKit::WebIDBTransactionCallbacks; +using WebKit::WebString; + +RendererWebIDBTransactionImpl::RendererWebIDBTransactionImpl( + int32 idb_transaction_id) + : idb_transaction_id_(idb_transaction_id) { +} + +RendererWebIDBTransactionImpl::~RendererWebIDBTransactionImpl() { + RenderThread::current()->Send(new ViewHostMsg_IDBTransactionDestroyed( + idb_transaction_id_)); +} + +int RendererWebIDBTransactionImpl::mode() const +{ + // TODO: implement + DCHECK(false); + return 0; +} + +WebIDBObjectStore* RendererWebIDBTransactionImpl::objectStore( + const WebString& name) +{ + // TODO: implement + DCHECK(false); + return 0; +} + +void RendererWebIDBTransactionImpl::abort() +{ + // TODO: implement + DCHECK(false); +} + +int RendererWebIDBTransactionImpl::id() const +{ + return idb_transaction_id_; +} + +void RendererWebIDBTransactionImpl::setCallbacks( + WebIDBTransactionCallbacks* callbacks) +{ + IndexedDBDispatcher* dispatcher = + RenderThread::current()->indexed_db_dispatcher(); + dispatcher->RequestIDBTransactionSetCallbacks(callbacks); +} |