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

Unified Diff: content/child/blob_storage/blob_message_filter.cc

Issue 2448353002: [BlobAsync] Moving async handling into BlobStorageContext & quota out. (Closed)
Patch Set: hopefully fixed android/windows compile, and comments Created 4 years, 1 month 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: content/child/blob_storage/blob_message_filter.cc
diff --git a/content/child/blob_storage/blob_message_filter.cc b/content/child/blob_storage/blob_message_filter.cc
index 0570e17ba0a9dca480dbce1ab0e41d628031863b..368f64e601f74903265b1ff4f5ada919e5b05dad 100644
--- a/content/child/blob_storage/blob_message_filter.cc
+++ b/content/child/blob_storage/blob_message_filter.cc
@@ -35,8 +35,7 @@ bool BlobMessageFilter::OnMessageReceived(const IPC::Message& message) {
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(BlobMessageFilter, message)
IPC_MESSAGE_HANDLER(BlobStorageMsg_RequestMemoryItem, OnRequestMemoryItem)
- IPC_MESSAGE_HANDLER(BlobStorageMsg_CancelBuildingBlob, OnCancelBuildingBlob)
- IPC_MESSAGE_HANDLER(BlobStorageMsg_DoneBuildingBlob, OnDoneBuildingBlob)
+ IPC_MESSAGE_HANDLER(BlobStorageMsg_SendBlobStatus, OnBlobFinalStatus)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
return handled;
@@ -58,14 +57,9 @@ void BlobMessageFilter::OnRequestMemoryItem(
sender_);
}
-void BlobMessageFilter::OnCancelBuildingBlob(
- const std::string& uuid,
- storage::IPCBlobCreationCancelCode code) {
- BlobTransportController::GetInstance()->OnCancel(uuid, code);
-}
-
-void BlobMessageFilter::OnDoneBuildingBlob(const std::string& uuid) {
- BlobTransportController::GetInstance()->OnDone(uuid);
+void BlobMessageFilter::OnBlobFinalStatus(const std::string& uuid,
+ storage::BlobStatus code) {
+ BlobTransportController::GetInstance()->OnBlobFinalStatus(uuid, code);
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698