Lines Matching refs:growth

75 bool AllocateQuota(FileSystemOperationContext* context, int64 growth) {
79 int64 new_quota = context->allowed_bytes_growth() - growth;
80 if (growth > 0 && new_quota < 0)
89 int64 growth) {
91 &FileUpdateObserver::OnUpdate, MakeTuple(url, growth));
315 int64 growth = UsageForPath(file_info.name.size());
316 if (!AllocateQuota(context, growth))
322 UpdateUsage(context, url, growth);
375 int64 growth = UsageForPath(file_info.name.size());
376 if (!AllocateQuota(context, growth))
381 UpdateUsage(context, url, growth);
477 int64 growth = length - file_info.size;
478 if (!AllocateQuota(context, growth))
482 UpdateUsage(context, url, growth);
549 int64 growth = 0;
551 growth += src_platform_file_info.size;
553 growth -= UsageForPath(src_file_info.name.size());
555 growth -= dest_platform_file_info.size;
557 growth += UsageForPath(dest_file_info.name.size());
558 if (!AllocateQuota(context, growth))
626 UpdateUsage(context, dest_url, growth);
672 int64 growth = src_platform_file_info.size;
674 growth -= dest_platform_file_info.size;
676 growth += UsageForPath(dest_file_info.name.size());
677 if (!AllocateQuota(context, growth))
705 UpdateUsage(context, dest_url, growth);
732 int64 growth = -UsageForPath(file_info.name.size()) - platform_file_info.size;
733 AllocateQuota(context, growth);
738 UpdateUsage(context, url, growth);
772 int64 growth = -UsageForPath(file_info.name.size());
773 AllocateQuota(context, growth);
774 UpdateUsage(context, url, growth);
1357 int64 growth = UsageForPath(file_info.name.size());
1358 if (!AllocateQuota(context, growth))
1362 UpdateUsage(context, url, growth);