| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/renderer/renderer_WebIDBTransaction_impl.h" | |
| 6 | |
| 7 #include "chrome/common/render_messages.h" | |
| 8 #include "chrome/renderer/render_thread.h" | |
| 9 #include "chrome/renderer/indexed_db_dispatcher.h" | |
| 10 #include "third_party/WebKit/WebKit/chromium/public/WebIDBObjectStore.h" | |
| 11 #include "third_party/WebKit/WebKit/chromium/public/WebIDBTransactionCallbacks.h
" | |
| 12 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" | |
| 13 | |
| 14 using WebKit::WebIDBObjectStore; | |
| 15 using WebKit::WebIDBTransactionCallbacks; | |
| 16 using WebKit::WebString; | |
| 17 | |
| 18 RendererWebIDBTransactionImpl::RendererWebIDBTransactionImpl( | |
| 19 int32 idb_transaction_id) | |
| 20 : idb_transaction_id_(idb_transaction_id) { | |
| 21 } | |
| 22 | |
| 23 RendererWebIDBTransactionImpl::~RendererWebIDBTransactionImpl() { | |
| 24 RenderThread::current()->Send(new ViewHostMsg_IDBTransactionDestroyed( | |
| 25 idb_transaction_id_)); | |
| 26 } | |
| 27 | |
| 28 int RendererWebIDBTransactionImpl::mode() const | |
| 29 { | |
| 30 // TODO: implement | |
| 31 DCHECK(false); | |
| 32 return 0; | |
| 33 } | |
| 34 | |
| 35 WebIDBObjectStore* RendererWebIDBTransactionImpl::objectStore( | |
| 36 const WebString& name) | |
| 37 { | |
| 38 // TODO: implement | |
| 39 DCHECK(false); | |
| 40 return 0; | |
| 41 } | |
| 42 | |
| 43 void RendererWebIDBTransactionImpl::abort() | |
| 44 { | |
| 45 // TODO: implement | |
| 46 DCHECK(false); | |
| 47 } | |
| 48 | |
| 49 int RendererWebIDBTransactionImpl::id() const | |
| 50 { | |
| 51 return idb_transaction_id_; | |
| 52 } | |
| 53 | |
| 54 void RendererWebIDBTransactionImpl::setCallbacks( | |
| 55 WebIDBTransactionCallbacks* callbacks) | |
| 56 { | |
| 57 IndexedDBDispatcher* dispatcher = | |
| 58 RenderThread::current()->indexed_db_dispatcher(); | |
| 59 dispatcher->RequestIDBTransactionSetCallbacks(callbacks); | |
| 60 } | |
| OLD | NEW |