OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/browser/indexed_db/webidbcursor_impl.h" | 5 #include "content/browser/indexed_db/webidbcursor_impl.h" |
6 | 6 |
7 #include "content/browser/indexed_db/indexed_db_callbacks_wrapper.h" | 7 #include "content/browser/indexed_db/indexed_db_callbacks_wrapper.h" |
8 #include "content/browser/indexed_db/indexed_db_cursor.h" | 8 #include "content/browser/indexed_db/indexed_db_cursor.h" |
9 #include "content/common/indexed_db/indexed_db_key.h" | 9 #include "content/common/indexed_db/indexed_db_key.h" |
10 #include "third_party/WebKit/public/platform/WebIDBKey.h" | 10 #include "third_party/WebKit/public/platform/WebIDBKey.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 IndexedDBCallbacksWrapper::Create(callbacks)); | 25 IndexedDBCallbacksWrapper::Create(callbacks)); |
26 } | 26 } |
27 | 27 |
28 void WebIDBCursorImpl::continueFunction(const WebKit::WebIDBKey& key, | 28 void WebIDBCursorImpl::continueFunction(const WebKit::WebIDBKey& key, |
29 WebIDBCallbacks* callbacks) { | 29 WebIDBCallbacks* callbacks) { |
30 idb_cursor_backend_->ContinueFunction( | 30 idb_cursor_backend_->ContinueFunction( |
31 make_scoped_ptr(new IndexedDBKey(key)), | 31 make_scoped_ptr(new IndexedDBKey(key)), |
32 IndexedDBCallbacksWrapper::Create(callbacks)); | 32 IndexedDBCallbacksWrapper::Create(callbacks)); |
33 } | 33 } |
34 | 34 |
35 void WebIDBCursorImpl::deleteFunction(WebIDBCallbacks* callbacks) { | |
36 idb_cursor_backend_->DeleteFunction( | |
37 IndexedDBCallbacksWrapper::Create(callbacks)); | |
38 } | |
39 | |
40 void WebIDBCursorImpl::prefetchContinue(int number_to_fetch, | 35 void WebIDBCursorImpl::prefetchContinue(int number_to_fetch, |
41 WebKit::WebIDBCallbacks* callbacks) { | 36 WebKit::WebIDBCallbacks* callbacks) { |
42 idb_cursor_backend_->PrefetchContinue( | 37 idb_cursor_backend_->PrefetchContinue( |
43 number_to_fetch, IndexedDBCallbacksWrapper::Create(callbacks)); | 38 number_to_fetch, IndexedDBCallbacksWrapper::Create(callbacks)); |
44 } | 39 } |
45 | 40 |
46 void WebIDBCursorImpl::prefetchReset(int used_prefetches, | 41 void WebIDBCursorImpl::prefetchReset(int used_prefetches, |
47 int unused_prefetches) { | 42 int unused_prefetches) { |
48 idb_cursor_backend_->PrefetchReset(used_prefetches, unused_prefetches); | 43 idb_cursor_backend_->PrefetchReset(used_prefetches, unused_prefetches); |
49 } | 44 } |
50 | 45 |
51 } // namespace content | 46 } // namespace content |
OLD | NEW |