OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/renderer/renderer_webidbindex_impl.h" | 5 #include "content/renderer/renderer_webidbindex_impl.h" |
6 | 6 |
7 #include "content/common/indexed_db_messages.h" | 7 #include "content/common/indexed_db_messages.h" |
8 #include "content/renderer/indexed_db_dispatcher.h" | 8 #include "content/renderer/indexed_db_dispatcher.h" |
9 #include "content/renderer/render_thread_impl.h" | 9 #include "content/renderer/render_thread_impl.h" |
10 #include "content/renderer/renderer_webidbtransaction_impl.h" | 10 #include "content/renderer/renderer_webidbtransaction_impl.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 unsigned short direction, | 74 unsigned short direction, |
75 WebKit::WebIDBCallbacks* callbacks, | 75 WebKit::WebIDBCallbacks* callbacks, |
76 const WebKit::WebIDBTransaction& transaction, | 76 const WebKit::WebIDBTransaction& transaction, |
77 WebExceptionCode& ec) { | 77 WebExceptionCode& ec) { |
78 IndexedDBDispatcher* dispatcher = | 78 IndexedDBDispatcher* dispatcher = |
79 RenderThreadImpl::current()->indexed_db_dispatcher(); | 79 RenderThreadImpl::current()->indexed_db_dispatcher(); |
80 dispatcher->RequestIDBIndexOpenKeyCursor( | 80 dispatcher->RequestIDBIndexOpenKeyCursor( |
81 range, direction, callbacks, idb_index_id_, transaction, &ec); | 81 range, direction, callbacks, idb_index_id_, transaction, &ec); |
82 } | 82 } |
83 | 83 |
| 84 void RendererWebIDBIndexImpl::count( |
| 85 const WebKit::WebIDBKeyRange& range, |
| 86 WebKit::WebIDBCallbacks* callbacks, |
| 87 const WebKit::WebIDBTransaction& transaction, |
| 88 WebExceptionCode& ec) { |
| 89 IndexedDBDispatcher* dispatcher = |
| 90 RenderThreadImpl::current()->indexed_db_dispatcher(); |
| 91 dispatcher->RequestIDBIndexCount( |
| 92 range, callbacks, idb_index_id_, transaction, &ec); |
| 93 } |
| 94 |
84 void RendererWebIDBIndexImpl::getObject( | 95 void RendererWebIDBIndexImpl::getObject( |
85 const WebKit::WebIDBKey& key, | 96 const WebKit::WebIDBKey& key, |
86 WebKit::WebIDBCallbacks* callbacks, | 97 WebKit::WebIDBCallbacks* callbacks, |
87 const WebKit::WebIDBTransaction& transaction, | 98 const WebKit::WebIDBTransaction& transaction, |
88 WebExceptionCode& ec) { | 99 WebExceptionCode& ec) { |
89 IndexedDBDispatcher* dispatcher = | 100 IndexedDBDispatcher* dispatcher = |
90 RenderThreadImpl::current()->indexed_db_dispatcher(); | 101 RenderThreadImpl::current()->indexed_db_dispatcher(); |
91 dispatcher->RequestIDBIndexGetObject( | 102 dispatcher->RequestIDBIndexGetObject( |
92 IndexedDBKey(key), callbacks, idb_index_id_, transaction, &ec); | 103 IndexedDBKey(key), callbacks, idb_index_id_, transaction, &ec); |
93 } | 104 } |
94 | 105 |
95 void RendererWebIDBIndexImpl::getKey( | 106 void RendererWebIDBIndexImpl::getKey( |
96 const WebKit::WebIDBKey& key, | 107 const WebKit::WebIDBKey& key, |
97 WebKit::WebIDBCallbacks* callbacks, | 108 WebKit::WebIDBCallbacks* callbacks, |
98 const WebKit::WebIDBTransaction& transaction, | 109 const WebKit::WebIDBTransaction& transaction, |
99 WebExceptionCode& ec) { | 110 WebExceptionCode& ec) { |
100 IndexedDBDispatcher* dispatcher = | 111 IndexedDBDispatcher* dispatcher = |
101 RenderThreadImpl::current()->indexed_db_dispatcher(); | 112 RenderThreadImpl::current()->indexed_db_dispatcher(); |
102 dispatcher->RequestIDBIndexGetKey( | 113 dispatcher->RequestIDBIndexGetKey( |
103 IndexedDBKey(key), callbacks, idb_index_id_, transaction, &ec); | 114 IndexedDBKey(key), callbacks, idb_index_id_, transaction, &ec); |
104 } | 115 } |
OLD | NEW |