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

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

Issue 2055053003: [BlobAsync] Disk support for blob storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Combined BlobSlice & BlobFlattener files, more comments, a little cleanup. Created 4 years, 5 months 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 66ec62de411a4e86a7029952b63d0f0ba34ca850..74763aedecf1e64e674853d0fb84775ed6aec140 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, OnBlobStatus)
michaeln 2016/08/15 22:44:43 maybe call this OnBlobFinalStatus here and through
dmurph 2016/08/19 00:18:32 Done.
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::OnBlobStatus(const std::string& uuid,
+ storage::BlobStatus code) {
+ BlobTransportController::GetInstance()->OnBlobStatus(uuid, code);
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698