OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/common/indexed_db/proxy_webidbtransaction_impl.h" | 5 #include "content/common/indexed_db/proxy_webidbtransaction_impl.h" |
6 | 6 |
7 #include "content/common/indexed_db/indexed_db_messages.h" | 7 #include "content/common/indexed_db/indexed_db_messages.h" |
8 #include "content/common/indexed_db/indexed_db_dispatcher.h" | 8 #include "content/common/indexed_db/indexed_db_dispatcher.h" |
9 #include "content/common/indexed_db/proxy_webidbobjectstore_impl.h" | 9 #include "content/common/indexed_db/proxy_webidbobjectstore_impl.h" |
10 #include "content/common/child_thread.h" | 10 #include "content/common/child_thread.h" |
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBObjectStore.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBObjectStore.h" |
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBTransactionCall
backs.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBTransactionCall
backs.h" |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
14 | 14 |
15 using WebKit::WebIDBObjectStore; | 15 using WebKit::WebIDBObjectStore; |
16 using WebKit::WebIDBTransactionCallbacks; | 16 using WebKit::WebIDBTransactionCallbacks; |
17 using WebKit::WebString; | 17 using WebKit::WebString; |
18 | 18 |
| 19 namespace content { |
| 20 |
19 RendererWebIDBTransactionImpl::RendererWebIDBTransactionImpl( | 21 RendererWebIDBTransactionImpl::RendererWebIDBTransactionImpl( |
20 int32 idb_transaction_id) | 22 int32 idb_transaction_id) |
21 : idb_transaction_id_(idb_transaction_id) { | 23 : idb_transaction_id_(idb_transaction_id) { |
22 } | 24 } |
23 | 25 |
24 RendererWebIDBTransactionImpl::~RendererWebIDBTransactionImpl() { | 26 RendererWebIDBTransactionImpl::~RendererWebIDBTransactionImpl() { |
25 // It's not possible for there to be pending callbacks that address this | 27 // It's not possible for there to be pending callbacks that address this |
26 // object since inside WebKit, they hold a reference to the object wich owns | 28 // object since inside WebKit, they hold a reference to the object wich owns |
27 // this object. But, if that ever changed, then we'd need to invalidate | 29 // this object. But, if that ever changed, then we'd need to invalidate |
28 // any such pointers. | 30 // any such pointers. |
(...skipping 29 matching lines...) Expand all Loading... |
58 idb_transaction_id_)); | 60 idb_transaction_id_)); |
59 } | 61 } |
60 | 62 |
61 void RendererWebIDBTransactionImpl::setCallbacks( | 63 void RendererWebIDBTransactionImpl::setCallbacks( |
62 WebIDBTransactionCallbacks* callbacks) { | 64 WebIDBTransactionCallbacks* callbacks) { |
63 IndexedDBDispatcher* dispatcher = | 65 IndexedDBDispatcher* dispatcher = |
64 IndexedDBDispatcher::ThreadSpecificInstance(); | 66 IndexedDBDispatcher::ThreadSpecificInstance(); |
65 dispatcher->RegisterWebIDBTransactionCallbacks(callbacks, | 67 dispatcher->RegisterWebIDBTransactionCallbacks(callbacks, |
66 idb_transaction_id_); | 68 idb_transaction_id_); |
67 } | 69 } |
| 70 |
| 71 } // namespace content |
OLD | NEW |