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

Side by Side Diff: content/common/indexed_db/proxy_webidbtransaction_impl.cc

Issue 11312178: Remove legacy IDB backend IPC glue for string-based references. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add crbug link Created 8 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « content/common/indexed_db/proxy_webidbtransaction_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
(...skipping 15 matching lines...) Expand all
26 RendererWebIDBTransactionImpl::~RendererWebIDBTransactionImpl() { 26 RendererWebIDBTransactionImpl::~RendererWebIDBTransactionImpl() {
27 // 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
28 // 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
29 // 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
30 // any such pointers. 30 // any such pointers.
31 IndexedDBDispatcher::Send(new IndexedDBHostMsg_TransactionDestroyed( 31 IndexedDBDispatcher::Send(new IndexedDBHostMsg_TransactionDestroyed(
32 idb_transaction_id_)); 32 idb_transaction_id_));
33 } 33 }
34 34
35 WebIDBObjectStore* RendererWebIDBTransactionImpl::objectStore( 35 WebIDBObjectStore* RendererWebIDBTransactionImpl::objectStore(
36 const WebString& name,
37 WebKit::WebExceptionCode& ec) {
38 int object_store_ipc_id;
39 IndexedDBDispatcher::Send(
40 new IndexedDBHostMsg_TransactionObjectStoreOld(
41 idb_transaction_id_, name, &object_store_ipc_id, &ec));
42 if (!object_store_ipc_id)
43 return NULL;
44 return new RendererWebIDBObjectStoreImpl(object_store_ipc_id);
45 }
46
47 WebIDBObjectStore* RendererWebIDBTransactionImpl::objectStore(
48 long long object_store_id, 36 long long object_store_id,
49 WebKit::WebExceptionCode& ec) { 37 WebKit::WebExceptionCode& ec) {
50 int idb_object_store_id; 38 int idb_object_store_id;
51 IndexedDBDispatcher::Send( 39 IndexedDBDispatcher::Send(
52 new IndexedDBHostMsg_TransactionObjectStore( 40 new IndexedDBHostMsg_TransactionObjectStore(
53 idb_transaction_id_, object_store_id, &idb_object_store_id, &ec)); 41 idb_transaction_id_, object_store_id, &idb_object_store_id, &ec));
54 if (!object_store_id) 42 if (!object_store_id)
55 return NULL; 43 return NULL;
56 return new RendererWebIDBObjectStoreImpl(idb_object_store_id); 44 return new RendererWebIDBObjectStoreImpl(idb_object_store_id);
57 } 45 }
(...skipping 16 matching lines...) Expand all
74 62
75 void RendererWebIDBTransactionImpl::setCallbacks( 63 void RendererWebIDBTransactionImpl::setCallbacks(
76 WebIDBTransactionCallbacks* callbacks) { 64 WebIDBTransactionCallbacks* callbacks) {
77 IndexedDBDispatcher* dispatcher = 65 IndexedDBDispatcher* dispatcher =
78 IndexedDBDispatcher::ThreadSpecificInstance(); 66 IndexedDBDispatcher::ThreadSpecificInstance();
79 dispatcher->RegisterWebIDBTransactionCallbacks(callbacks, 67 dispatcher->RegisterWebIDBTransactionCallbacks(callbacks,
80 idb_transaction_id_); 68 idb_transaction_id_);
81 } 69 }
82 70
83 } // namespace content 71 } // namespace content
OLDNEW
« no previous file with comments | « content/common/indexed_db/proxy_webidbtransaction_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698