Home | History | Annotate | Download | only in dom_storage

Lines Matching refs:batch

141   leveldb::WriteBatch batch;
145 if (!CreateNamespace(namespace_id, kOkIfExists, &batch))
159 &map_id, &batch))
163 if (!ClearMap(map_id, &batch))
169 if (!CreateMapForArea(namespace_id, origin, &map_id, &batch))
174 WriteValuesToMap(map_id, changes, &batch);
176 leveldb::Status s = db_->Write(leveldb::WriteOptions(), &batch);
203 leveldb::WriteBatch batch;
205 if (!CreateNamespace(new_namespace_id, kOkIfExists, &batch))
216 if (!IncreaseMapRefCount(map_id, &batch))
218 AddAreaToNamespace(new_namespace_id, origin, map_id, &batch);
220 leveldb::Status s = db_->Write(leveldb::WriteOptions(), &batch);
231 leveldb::WriteBatch batch;
232 if (!DeleteAreaHelper(namespace_id, origin.spec(), &batch))
234 leveldb::Status s = db_->Write(leveldb::WriteOptions(), &batch);
245 leveldb::WriteBatch batch;
252 if (!DeleteAreaHelper(namespace_id, origin, &batch))
255 batch.Delete(NamespaceStartKey(namespace_id));
256 leveldb::Status s = db_->Write(leveldb::WriteOptions(), &batch);
419 leveldb::WriteBatch* batch) {
427 batch->Put(namespace_prefix, "");
434 batch->Put(namespace_start_key, "");
473 leveldb::WriteBatch* batch) {
475 batch->Put(namespace_key, map_id);
481 leveldb::WriteBatch* batch) {
489 if (!DecreaseMapRefCount(map_id, 1, batch))
492 batch->Delete(namespace_key);
511 batch->Delete(namespace_start_key);
532 leveldb::WriteBatch* batch) {
545 batch->Put(next_map_id_key, base::Int64ToString(++next_map_id));
547 batch->Put(namespace_key, *map_id);
548 batch->Put(MapRefCountKey(*map_id), "1");
593 leveldb::WriteBatch* batch) {
600 batch->Delete(key);
606 batch->Put(key, leveldb::Slice(data, size));
623 leveldb::WriteBatch* batch) {
628 batch->Put(MapRefCountKey(map_id), base::Int64ToString(++old_ref_count));
634 leveldb::WriteBatch* batch) {
643 batch->Put(MapRefCountKey(map_id), base::Int64ToString(ref_count));
646 if (!ClearMap(map_id, batch))
648 batch->Delete(MapRefCountKey(map_id));
654 leveldb::WriteBatch* batch) {
660 batch->Delete(MapKey(map_id, base::UTF16ToUTF8(it->first)));
666 std::string* map_id, leveldb::WriteBatch* batch) {
690 if (!DecreaseMapRefCount(*map_id, 1, batch))
695 if (!CreateMapForArea(namespace_id, origin, map_id, batch))
697 WriteValuesToMap(*map_id, values, batch);