Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Unified Diff: storage/browser/blob/blob_entry.cc

Issue 2516713002: [BlobStorage] Implementing disk. (Closed)
Patch Set: file flushing, stack track on reader error Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: storage/browser/blob/blob_entry.cc
diff --git a/storage/browser/blob/blob_entry.cc b/storage/browser/blob/blob_entry.cc
index 094eb3656412a66f67e3497476fa9ba48f896e59..886f96090a758e66cdebd522e5d3465668f38950 100644
--- a/storage/browser/blob/blob_entry.cc
+++ b/storage/browser/blob/blob_entry.cc
@@ -38,6 +38,15 @@ BlobEntry::BuildingState::BuildingState(
BlobEntry::BuildingState::~BuildingState() {}
michaeln 2016/12/02 20:41:07 Are the quota_requests expected to be empty/done a
dmurph 2016/12/02 21:53:07 We can assert that.
+void BlobEntry::BuildingState::CancelRequests() {
+ if (copy_quota_request) {
+ copy_quota_request->Cancel();
+ }
+ if (transport_quota_request) {
+ transport_quota_request->Cancel();
+ }
+}
+
BlobEntry::BlobEntry(const std::string& content_type,
const std::string& content_disposition)
: content_type_(content_type), content_disposition_(content_disposition) {}

Powered by Google App Engine
This is Rietveld 408576698