| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 122 |
| 123 // Used by IDBCursor::update(): | 123 // Used by IDBCursor::update(): |
| 124 IDBRequest* put(ScriptState*, | 124 IDBRequest* put(ScriptState*, |
| 125 WebIDBPutMode, | 125 WebIDBPutMode, |
| 126 IDBAny* source, | 126 IDBAny* source, |
| 127 const ScriptValue&, | 127 const ScriptValue&, |
| 128 IDBKey*, | 128 IDBKey*, |
| 129 ExceptionState&); | 129 ExceptionState&); |
| 130 | 130 |
| 131 // Used internally and by InspectorIndexedDBAgent: | 131 // Used internally and by InspectorIndexedDBAgent: |
| 132 IDBRequest* openCursor(ScriptState*, | 132 IDBRequest* openCursor( |
| 133 IDBKeyRange*, | 133 ScriptState*, |
| 134 WebIDBCursorDirection, | 134 IDBKeyRange*, |
| 135 WebIDBTaskType = kWebIDBTaskTypeNormal); | 135 WebIDBCursorDirection, |
| 136 WebIDBTaskType = kWebIDBTaskTypeNormal, |
| 137 IDBRequest::AsyncTraceState = IDBRequest::AsyncTraceState()); |
| 136 | 138 |
| 137 void MarkDeleted(); | 139 void MarkDeleted(); |
| 138 bool IsDeleted() const { return deleted_; } | 140 bool IsDeleted() const { return deleted_; } |
| 139 | 141 |
| 140 // True if this object store was created in its associated transaction. | 142 // True if this object store was created in its associated transaction. |
| 141 // Only valid if the store's associated transaction is a versionchange. | 143 // Only valid if the store's associated transaction is a versionchange. |
| 142 bool IsNewlyCreated() const { | 144 bool IsNewlyCreated() const { |
| 143 DCHECK(transaction_->IsVersionChange()); | 145 DCHECK(transaction_->IsVersionChange()); |
| 144 // Object store IDs are allocated sequentially, so we can tell if an object | 146 // Object store IDs are allocated sequentially, so we can tell if an object |
| 145 // store was created in this transaction by comparing its ID against the | 147 // store was created in this transaction by comparing its ID against the |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 IDBIndexMap index_map_; | 219 IDBIndexMap index_map_; |
| 218 | 220 |
| 219 #if DCHECK_IS_ON() | 221 #if DCHECK_IS_ON() |
| 220 bool clear_index_cache_called_ = false; | 222 bool clear_index_cache_called_ = false; |
| 221 #endif // DCHECK_IS_ON() | 223 #endif // DCHECK_IS_ON() |
| 222 }; | 224 }; |
| 223 | 225 |
| 224 } // namespace blink | 226 } // namespace blink |
| 225 | 227 |
| 226 #endif // IDBObjectStore_h | 228 #endif // IDBObjectStore_h |
| OLD | NEW |