Chromium Code Reviews| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 113 const IDBIndexParameters& options, | 113 const IDBIndexParameters& options, |
| 114 ExceptionState& exception_state) { | 114 ExceptionState& exception_state) { |
| 115 return createIndex(script_state, name, IDBKeyPath(key_path), options, | 115 return createIndex(script_state, name, IDBKeyPath(key_path), options, |
| 116 exception_state); | 116 exception_state); |
| 117 } | 117 } |
| 118 IDBIndex* index(const String& name, ExceptionState&); | 118 IDBIndex* index(const String& name, ExceptionState&); |
| 119 void deleteIndex(const String& name, ExceptionState&); | 119 void deleteIndex(const String& name, ExceptionState&); |
| 120 | 120 |
| 121 IDBRequest* count(ScriptState*, const ScriptValue& range, ExceptionState&); | 121 IDBRequest* count(ScriptState*, const ScriptValue& range, ExceptionState&); |
| 122 | 122 |
| 123 // Used by IDBCursor::update(): | 123 // Used by IDBCursor::update():ccccc |
|
pwnall
2017/05/18 22:14:32
typo?
dmurph
2017/05/18 23:51:15
Done.
| |
| 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 std::unique_ptr<IDBRequest::ScopedMetricsTracker> = nullptr); | |
| 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 |