OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "modules/indexeddb/IDBCursorProxy.h" |
| 6 |
| 7 #include "modules/indexeddb/IDBKey.h" |
| 8 #include "modules/indexeddb/IDBMojoUtil.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 #if 0 |
| 13 IDBCursorProxy* IDBCursorProxy::create(int32_t cursorId) |
| 14 { |
| 15 return new IDBCursorProxy(cursorId); |
| 16 } |
| 17 #endif |
| 18 |
| 19 IDBCursorProxy::IDBCursorProxy(int32_t cursorId) |
| 20 : m_cursorId(cursorId) |
| 21 { |
| 22 // TODO(cmumford): Eventually delete member if not needed. |
| 23 (void)m_cursorId; |
| 24 } |
| 25 |
| 26 void IDBCursorProxy::Advance(uint32_t count) |
| 27 { |
| 28 m_cursor->Advance(count); |
| 29 } |
| 30 |
| 31 void IDBCursorProxy::ContinueFunction(const IDBKey* key, const IDBKey* primaryKe
y) |
| 32 { |
| 33 m_cursor->ContinueFunction(createKey(key), createKey(primaryKey)); |
| 34 } |
| 35 |
| 36 void IDBCursorProxy::PostSuccessHandlerCallback() |
| 37 { |
| 38 m_cursor->PostSuccessHandlerCallback(); |
| 39 } |
| 40 |
| 41 } // namespace blink |
OLD | NEW |