Home
last modified time | relevance | path

Searched refs:blob_key (Results 1 – 12 of 12) sorted by relevance

/external/chromium_org/content/browser/indexed_db/
Dindexed_db_active_blob_registry.cc24 int64 blob_key) { in AddBlobRef() argument
28 DCHECK(DatabaseMetaDataKey::IsValidBlobKey(blob_key)); in AddBlobRef()
32 SingleDBMap::iterator iter = single_db_map.find(blob_key); in AddBlobRef()
34 single_db_map[blob_key] = false; in AddBlobRef()
46 int64 blob_key) { in ReleaseBlobRef() argument
50 DCHECK(DatabaseMetaDataKey::IsValidBlobKey(blob_key)); in ReleaseBlobRef()
57 SingleDBMap::iterator blob_pair = single_db.find(blob_key); in ReleaseBlobRef()
73 blob_key = DatabaseMetaDataKey::kAllBlobsKey; in ReleaseBlobRef()
78 backing_store_->ReportBlobUnused(database_id, blob_key); in ReleaseBlobRef()
86 int64 blob_key) { in MarkDeletedCheckIfUsed() argument
[all …]
Dindexed_db_active_blob_registry.h32 bool MarkDeletedCheckIfUsed(int64 database_id, int64 blob_key);
36 int64 blob_key);
39 base::Closure GetAddBlobRefCallback(int64 database_id, int64 blob_key);
53 void AddBlobRef(int64 database_id, int64 blob_key);
54 void ReleaseBlobRef(int64 database_id, int64 blob_key);
59 int64 blob_key,
Dindexed_db_active_blob_registry_unittest.cc66 virtual void ReportBlobUnused(int64 database_id, int64 blob_key) OVERRIDE { in ReportBlobUnused() argument
67 unused_blobs_.insert(std::make_pair(database_id, blob_key)); in ReportBlobUnused()
73 bool CheckSingleUnusedBlob(int64 database_id, int64 blob_key) const { in CheckSingleUnusedBlob()
75 unused_blobs_.count(std::make_pair(database_id, blob_key)); in CheckSingleUnusedBlob()
Dindexed_db_leveldb_coding.cc626 int64 blob_key = -1; in DecodeBlobJournal() local
631 if (!DecodeVarInt(slice, &blob_key)) in DecodeBlobJournal()
633 if (!DatabaseMetaDataKey::IsValidBlobKey(blob_key) && in DecodeBlobJournal()
634 (blob_key != DatabaseMetaDataKey::kAllBlobsKey)) { in DecodeBlobJournal()
637 output.push_back(std::make_pair(database_id, blob_key)); in DecodeBlobJournal()
1425 bool DatabaseMetaDataKey::IsValidBlobKey(int64 blob_key) { in IsValidBlobKey() argument
1426 return blob_key >= kBlobKeyGeneratorInitialNumber; in IsValidBlobKey()
Dindexed_db_fake_backing_store.h105 virtual void ReportBlobUnused(int64 database_id, int64 blob_key) OVERRIDE;
Dindexed_db_fake_backing_store.cc158 int64 blob_key) {} in ReportBlobUnused() argument
Dindexed_db_backing_store.cc2413 int64 blob_key) { in ReportBlobUnused() argument
2415 bool all_blobs = blob_key == DatabaseMetaDataKey::kAllBlobsKey; in ReportBlobUnused()
2416 DCHECK(all_blobs || DatabaseMetaDataKey::IsValidBlobKey(blob_key)); in ReportBlobUnused()
2451 (all_blobs || current_all_blobs || blob_key == current_blob_key)) { in ReportBlobUnused()
2637 int64 blob_key = journal_iter->second; in CleanUpBlobJournal() local
2639 if (blob_key == DatabaseMetaDataKey::kAllBlobsKey) { in CleanUpBlobJournal()
2643 DCHECK(DatabaseMetaDataKey::IsValidBlobKey(blob_key)); in CleanUpBlobJournal()
2644 if (!RemoveBlobFile(database_id, blob_key)) in CleanUpBlobJournal()
Dindexed_db_backing_store.h468 virtual void ReportBlobUnused(int64 database_id, int64 blob_key);
/external/chromium_org/chrome/common/extensions/docs/server2/
Dappengine_blobstore.py34 blob_key = files.blobstore.get_blob_key(filename)
35 self._datastore.Set(datastore.BLOB_REFERENCE_BLOBSTORE, key, blob_key)
41 blob_key = self._datastore.Get(datastore.BLOB_REFERENCE_BLOBSTORE, key)
42 if blob_key is None:
44 blob_reader = blobstore.BlobReader(blob_key)
51 blob_key = self._datastore.Delete(datastore.BLOB_REFERENCE_BLOBSTORE, key)
52 if blob_key is None:
54 blob_key.delete()
Dblob_reference_store.py36 blob_key = result.value
38 return blob_key
Dappengine_wrappers.py105 def __init__(self, blob_key): argument
106 self._data = _BLOBS[blob_key].getvalue()
/external/chromium_org/tools/deep_memory_profiler/visualizer/
Dservices.py18 blob_key = ndb.BlobKeyProperty() variable in Profiler
37 profiler = Profiler(id=run_id, blob_key=blob_info.key())
47 return blobstore.BlobReader(profiler.blob_key).read()