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_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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 new IndexedDBHostMsg_ObjectStoreDestroyed(idb_object_store_id_)); | 42 new IndexedDBHostMsg_ObjectStoreDestroyed(idb_object_store_id_)); |
43 } | 43 } |
44 | 44 |
45 WebString RendererWebIDBObjectStoreImpl::name() const { | 45 WebString RendererWebIDBObjectStoreImpl::name() const { |
46 string16 result; | 46 string16 result; |
47 IndexedDBDispatcher::Send( | 47 IndexedDBDispatcher::Send( |
48 new IndexedDBHostMsg_ObjectStoreName(idb_object_store_id_, &result)); | 48 new IndexedDBHostMsg_ObjectStoreName(idb_object_store_id_, &result)); |
49 return result; | 49 return result; |
50 } | 50 } |
51 | 51 |
52 WebString RendererWebIDBObjectStoreImpl::keyPath() const { | 52 WebString RendererWebIDBObjectStoreImpl::keyPathString() const { |
53 NullableString16 result; | 53 NullableString16 result; |
54 IndexedDBDispatcher::Send( | 54 IndexedDBDispatcher::Send( |
55 new IndexedDBHostMsg_ObjectStoreKeyPath(idb_object_store_id_, &result)); | 55 new IndexedDBHostMsg_ObjectStoreKeyPath(idb_object_store_id_, &result)); |
56 return result; | 56 return result; |
57 } | 57 } |
58 | 58 |
59 WebDOMStringList RendererWebIDBObjectStoreImpl::indexNames() const { | 59 WebDOMStringList RendererWebIDBObjectStoreImpl::indexNames() const { |
60 std::vector<string16> result; | 60 std::vector<string16> result; |
61 IndexedDBDispatcher::Send( | 61 IndexedDBDispatcher::Send( |
62 new IndexedDBHostMsg_ObjectStoreIndexNames( | 62 new IndexedDBHostMsg_ObjectStoreIndexNames( |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 const WebIDBKeyRange& idb_key_range, | 188 const WebIDBKeyRange& idb_key_range, |
189 WebIDBCallbacks* callbacks, | 189 WebIDBCallbacks* callbacks, |
190 const WebIDBTransaction& transaction, | 190 const WebIDBTransaction& transaction, |
191 WebExceptionCode& ec) { | 191 WebExceptionCode& ec) { |
192 IndexedDBDispatcher* dispatcher = | 192 IndexedDBDispatcher* dispatcher = |
193 IndexedDBDispatcher::ThreadSpecificInstance(); | 193 IndexedDBDispatcher::ThreadSpecificInstance(); |
194 dispatcher->RequestIDBObjectStoreCount( | 194 dispatcher->RequestIDBObjectStoreCount( |
195 idb_key_range, callbacks, idb_object_store_id_, | 195 idb_key_range, callbacks, idb_object_store_id_, |
196 transaction, &ec); | 196 transaction, &ec); |
197 } | 197 } |
OLD | NEW |