Home | History | Annotate | Download | only in dom_storage

Lines Matching refs:namespace_id

106 void SessionStorageDatabase::ReadAreaValues(const std::string& namespace_id,
124 if (GetMapForArea(namespace_id, origin.spec(), options, &exists, &map_id) &&
131 const std::string& namespace_id,
145 if (!CreateNamespace(namespace_id, kOkIfExists, &batch))
150 if (!GetMapForArea(namespace_id, origin.spec(), leveldb::ReadOptions(),
158 if (!DeepCopyArea(namespace_id, origin, !clear_all_first,
169 if (!CreateMapForArea(namespace_id, origin, &map_id, &batch))
181 const std::string& namespace_id, const std::string& new_namespace_id) {
182 // Go through all origins in the namespace |namespace_id|, create placeholders
209 if (!GetAreasInNamespace(namespace_id, &areas))
224 bool SessionStorageDatabase::DeleteArea(const std::string& namespace_id,
232 if (!DeleteAreaHelper(namespace_id, origin.spec(), &batch))
238 bool SessionStorageDatabase::DeleteNamespace(const std::string& namespace_id) {
247 if (!GetAreasInNamespace(namespace_id, &areas))
252 if (!DeleteAreaHelper(namespace_id, origin, &batch))
255 batch.Delete(NamespaceStartKey(namespace_id));
417 bool SessionStorageDatabase::CreateNamespace(const std::string& namespace_id,
429 std::string namespace_start_key = NamespaceStartKey(namespace_id);
441 const std::string& namespace_id,
443 std::string namespace_start_key = NamespaceStartKey(namespace_id);
470 void SessionStorageDatabase::AddAreaToNamespace(const std::string& namespace_id,
474 std::string namespace_key = NamespaceKey(namespace_id, origin);
479 const std::string& namespace_id,
484 if (!GetMapForArea(namespace_id, origin, leveldb::ReadOptions(), &exists,
491 std::string namespace_key = NamespaceKey(namespace_id, origin);
496 std::string namespace_start_key = NamespaceStartKey(namespace_id);
515 bool SessionStorageDatabase::GetMapForArea(const std::string& namespace_id,
519 std::string namespace_key = NamespaceKey(namespace_id, origin);
529 bool SessionStorageDatabase::CreateMapForArea(const std::string& namespace_id,
546 std::string namespace_key = NamespaceKey(namespace_id, origin.spec());
665 const std::string& namespace_id, const GURL& origin, bool copy_data,
695 if (!CreateMapForArea(namespace_id, origin, map_id, batch))
702 const std::string& namespace_id) {
703 return base::StringPrintf("namespace-%s-", namespace_id.c_str());
707 const std::string& namespace_id, const std::string& origin) {
708 return base::StringPrintf("namespace-%s-%s", namespace_id.c_str(),