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

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

Issue 2516713002: [BlobStorage] Implementing disk. (Closed)
Patch Set: removed cleanup check, as mac doesn't run out event loops 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
« no previous file with comments | « storage/browser/blob/blob_entry.h ('k') | storage/browser/blob/blob_memory_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..8ccc037ee2c6ef50e61672b1e9a82a3290d3d7a1 100644
--- a/storage/browser/blob/blob_entry.cc
+++ b/storage/browser/blob/blob_entry.cc
@@ -36,7 +36,19 @@ BlobEntry::BuildingState::BuildingState(
transport_allowed_callback(transport_allowed_callback),
num_building_dependent_blobs(num_building_dependent_blobs) {}
-BlobEntry::BuildingState::~BuildingState() {}
+BlobEntry::BuildingState::~BuildingState() {
+ DCHECK(!copy_quota_request);
+ DCHECK(!transport_quota_request);
+}
+
+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)
« no previous file with comments | « storage/browser/blob/blob_entry.h ('k') | storage/browser/blob/blob_memory_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698