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) {} |