| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 { | 54 { |
| 55 return new IDBCursor(backend, direction, request, source, transaction); | 55 return new IDBCursor(backend, direction, request, source, transaction); |
| 56 } | 56 } |
| 57 | 57 |
| 58 IDBCursor::IDBCursor(PassOwnPtr<WebIDBCursor> backend, WebIDBCursorDirection dir
ection, IDBRequest* request, IDBAny* source, IDBTransaction* transaction) | 58 IDBCursor::IDBCursor(PassOwnPtr<WebIDBCursor> backend, WebIDBCursorDirection dir
ection, IDBRequest* request, IDBAny* source, IDBTransaction* transaction) |
| 59 : m_backend(backend) | 59 : m_backend(backend) |
| 60 , m_request(request) | 60 , m_request(request) |
| 61 , m_direction(direction) | 61 , m_direction(direction) |
| 62 , m_source(source) | 62 , m_source(source) |
| 63 , m_transaction(transaction) | 63 , m_transaction(transaction) |
| 64 , m_gotValue(false) | |
| 65 , m_keyDirty(true) | |
| 66 , m_primaryKeyDirty(true) | |
| 67 , m_valueDirty(true) | |
| 68 { | 64 { |
| 69 ASSERT(m_backend); | 65 ASSERT(m_backend); |
| 70 ASSERT(m_request); | 66 ASSERT(m_request); |
| 71 ASSERT(m_source->type() == IDBAny::IDBObjectStoreType || m_source->type() ==
IDBAny::IDBIndexType); | 67 ASSERT(m_source->type() == IDBAny::IDBObjectStoreType || m_source->type() ==
IDBAny::IDBIndexType); |
| 72 ASSERT(m_transaction); | 68 ASSERT(m_transaction); |
| 73 } | 69 } |
| 74 | 70 |
| 75 IDBCursor::~IDBCursor() | 71 IDBCursor::~IDBCursor() |
| 76 { | 72 { |
| 77 } | 73 } |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 case WebIDBCursorDirectionPrevNoDuplicate: | 401 case WebIDBCursorDirectionPrevNoDuplicate: |
| 406 return IndexedDBNames::prevunique; | 402 return IndexedDBNames::prevunique; |
| 407 | 403 |
| 408 default: | 404 default: |
| 409 ASSERT_NOT_REACHED(); | 405 ASSERT_NOT_REACHED(); |
| 410 return IndexedDBNames::next; | 406 return IndexedDBNames::next; |
| 411 } | 407 } |
| 412 } | 408 } |
| 413 | 409 |
| 414 } // namespace blink | 410 } // namespace blink |
| OLD | NEW |