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_webidbindex_impl.h" | 5 #include "content/common/indexed_db/proxy_webidbindex_impl.h" |
6 | 6 |
7 #include "content/common/indexed_db/indexed_db_dispatcher.h" | 7 #include "content/common/indexed_db/indexed_db_dispatcher.h" |
8 #include "content/common/indexed_db/indexed_db_messages.h" | 8 #include "content/common/indexed_db/indexed_db_messages.h" |
9 #include "content/common/indexed_db/proxy_webidbtransaction_impl.h" | 9 #include "content/common/indexed_db/proxy_webidbtransaction_impl.h" |
10 #include "content/common/child_thread.h" | 10 #include "content/common/child_thread.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 idb_index_id_)); | 33 idb_index_id_)); |
34 } | 34 } |
35 | 35 |
36 WebString RendererWebIDBIndexImpl::name() const { | 36 WebString RendererWebIDBIndexImpl::name() const { |
37 string16 result; | 37 string16 result; |
38 IndexedDBDispatcher::Send( | 38 IndexedDBDispatcher::Send( |
39 new IndexedDBHostMsg_IndexName(idb_index_id_, &result)); | 39 new IndexedDBHostMsg_IndexName(idb_index_id_, &result)); |
40 return result; | 40 return result; |
41 } | 41 } |
42 | 42 |
43 WebString RendererWebIDBIndexImpl::storeName() const { | |
44 string16 result; | |
45 IndexedDBDispatcher::Send( | |
46 new IndexedDBHostMsg_IndexStoreName(idb_index_id_, &result)); | |
47 return result; | |
48 } | |
49 | |
50 WebIDBKeyPath RendererWebIDBIndexImpl::keyPath() const { | 43 WebIDBKeyPath RendererWebIDBIndexImpl::keyPath() const { |
51 IndexedDBKeyPath result; | 44 IndexedDBKeyPath result; |
52 IndexedDBDispatcher::Send( | 45 IndexedDBDispatcher::Send( |
53 new IndexedDBHostMsg_IndexKeyPath(idb_index_id_, &result)); | 46 new IndexedDBHostMsg_IndexKeyPath(idb_index_id_, &result)); |
54 return result; | 47 return result; |
55 } | 48 } |
56 | 49 |
57 bool RendererWebIDBIndexImpl::unique() const { | 50 bool RendererWebIDBIndexImpl::unique() const { |
58 bool result; | 51 bool result; |
59 IndexedDBDispatcher::Send( | 52 IndexedDBDispatcher::Send( |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 const WebKit::WebIDBKeyRange& key_range, | 112 const WebKit::WebIDBKeyRange& key_range, |
120 WebKit::WebIDBCallbacks* callbacks, | 113 WebKit::WebIDBCallbacks* callbacks, |
121 const WebKit::WebIDBTransaction& transaction, | 114 const WebKit::WebIDBTransaction& transaction, |
122 WebExceptionCode& ec) { | 115 WebExceptionCode& ec) { |
123 IndexedDBDispatcher* dispatcher = | 116 IndexedDBDispatcher* dispatcher = |
124 IndexedDBDispatcher::ThreadSpecificInstance(); | 117 IndexedDBDispatcher::ThreadSpecificInstance(); |
125 dispatcher->RequestIDBIndexGetKey( | 118 dispatcher->RequestIDBIndexGetKey( |
126 IndexedDBKeyRange(key_range), callbacks, idb_index_id_, | 119 IndexedDBKeyRange(key_range), callbacks, idb_index_id_, |
127 transaction, &ec); | 120 transaction, &ec); |
128 } | 121 } |
OLD | NEW |