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

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

Issue 10657011: IndexedDB: Remove IPC plumbing for obsolete property accessors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/common/indexed_db/proxy_webidbobjectstore_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_webidbobjectstore_impl.h" 5 #include "content/common/indexed_db/proxy_webidbobjectstore_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/public/common/serialized_script_value.h" 8 #include "content/public/common/serialized_script_value.h"
9 #include "content/common/indexed_db/indexed_db_dispatcher.h" 9 #include "content/common/indexed_db/indexed_db_dispatcher.h"
10 #include "content/common/indexed_db/proxy_webidbindex_impl.h" 10 #include "content/common/indexed_db/proxy_webidbindex_impl.h"
(...skipping 28 matching lines...) Expand all
39 39
40 RendererWebIDBObjectStoreImpl::~RendererWebIDBObjectStoreImpl() { 40 RendererWebIDBObjectStoreImpl::~RendererWebIDBObjectStoreImpl() {
41 // It's not possible for there to be pending callbacks that address this 41 // It's not possible for there to be pending callbacks that address this
42 // object since inside WebKit, they hold a reference to the object wich owns 42 // object since inside WebKit, they hold a reference to the object wich owns
43 // this object. But, if that ever changed, then we'd need to invalidate 43 // this object. But, if that ever changed, then we'd need to invalidate
44 // any such pointers. 44 // any such pointers.
45 IndexedDBDispatcher::Send( 45 IndexedDBDispatcher::Send(
46 new IndexedDBHostMsg_ObjectStoreDestroyed(idb_object_store_id_)); 46 new IndexedDBHostMsg_ObjectStoreDestroyed(idb_object_store_id_));
47 } 47 }
48 48
49 WebString RendererWebIDBObjectStoreImpl::name() const {
50 string16 result;
51 IndexedDBDispatcher::Send(
52 new IndexedDBHostMsg_ObjectStoreName(idb_object_store_id_, &result));
53 return result;
54 }
55
56 WebIDBKeyPath RendererWebIDBObjectStoreImpl::keyPath() const {
57 IndexedDBKeyPath result;
58 IndexedDBDispatcher::Send(
59 new IndexedDBHostMsg_ObjectStoreKeyPath(idb_object_store_id_, &result));
60 return result;
61 }
62
63 WebDOMStringList RendererWebIDBObjectStoreImpl::indexNames() const {
64 std::vector<string16> result;
65 IndexedDBDispatcher::Send(
66 new IndexedDBHostMsg_ObjectStoreIndexNames(
67 idb_object_store_id_, &result));
68 WebDOMStringList web_result;
69 for (std::vector<string16>::const_iterator it = result.begin();
70 it != result.end(); ++it) {
71 web_result.append(*it);
72 }
73 return web_result;
74 }
75
76 bool RendererWebIDBObjectStoreImpl::autoIncrement() const {
77 bool result;
78 IndexedDBDispatcher::Send(
79 new IndexedDBHostMsg_ObjectStoreAutoIncrement(
80 idb_object_store_id_, &result));
81 return result;
82 }
83
84 void RendererWebIDBObjectStoreImpl::get( 49 void RendererWebIDBObjectStoreImpl::get(
85 const WebIDBKeyRange& key_range, 50 const WebIDBKeyRange& key_range,
86 WebIDBCallbacks* callbacks, 51 WebIDBCallbacks* callbacks,
87 const WebIDBTransaction& transaction, 52 const WebIDBTransaction& transaction,
88 WebExceptionCode& ec) { 53 WebExceptionCode& ec) {
89 IndexedDBDispatcher* dispatcher = 54 IndexedDBDispatcher* dispatcher =
90 IndexedDBDispatcher::ThreadSpecificInstance(); 55 IndexedDBDispatcher::ThreadSpecificInstance();
91 dispatcher->RequestIDBObjectStoreGet( 56 dispatcher->RequestIDBObjectStoreGet(
92 content::IndexedDBKeyRange(key_range), callbacks, 57 content::IndexedDBKeyRange(key_range), callbacks,
93 idb_object_store_id_, transaction, &ec); 58 idb_object_store_id_, transaction, &ec);
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 const WebIDBKeyRange& idb_key_range, 155 const WebIDBKeyRange& idb_key_range,
191 WebIDBCallbacks* callbacks, 156 WebIDBCallbacks* callbacks,
192 const WebIDBTransaction& transaction, 157 const WebIDBTransaction& transaction,
193 WebExceptionCode& ec) { 158 WebExceptionCode& ec) {
194 IndexedDBDispatcher* dispatcher = 159 IndexedDBDispatcher* dispatcher =
195 IndexedDBDispatcher::ThreadSpecificInstance(); 160 IndexedDBDispatcher::ThreadSpecificInstance();
196 dispatcher->RequestIDBObjectStoreCount( 161 dispatcher->RequestIDBObjectStoreCount(
197 idb_key_range, callbacks, idb_object_store_id_, 162 idb_key_range, callbacks, idb_object_store_id_,
198 transaction, &ec); 163 transaction, &ec);
199 } 164 }
OLDNEW
« no previous file with comments | « content/common/indexed_db/proxy_webidbobjectstore_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698