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

Unified Diff: content/child/blob_storage/blob_transport_controller.h

Issue 2448353002: [BlobAsync] Moving async handling into BlobStorageContext & quota out. (Closed)
Patch Set: 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_transport_controller.h
diff --git a/content/child/blob_storage/blob_transport_controller.h b/content/child/blob_storage/blob_transport_controller.h
index 4f06418bd7d273056297868a04a5ae893318697e..a3065ec4bca02f0b7ae4c574b79f30e4d4703683 100644
--- a/content/child/blob_storage/blob_transport_controller.h
+++ b/content/child/blob_storage/blob_transport_controller.h
@@ -19,6 +19,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/shared_memory_handle.h"
#include "base/memory/weak_ptr.h"
+#include "base/optional.h"
#include "content/common/content_export.h"
#include "ipc/ipc_platform_file.h"
#include "storage/common/blob_storage/blob_storage_constants.h"
@@ -87,10 +88,7 @@ class CONTENT_EXPORT BlobTransportController {
base::TaskRunner* file_runner,
IPC::Sender* sender);
- void OnCancel(const std::string& uuid,
- storage::IPCBlobCreationCancelCode code);
-
- void OnDone(const std::string& uuid);
+ void OnBlobFinalStatus(const std::string& uuid, storage::BlobStatus code);
bool IsTransporting(const std::string& uuid) {
return blob_storage_.find(uuid) != blob_storage_.end();
@@ -127,8 +125,8 @@ class CONTENT_EXPORT BlobTransportController {
void OnFileWriteComplete(
IPC::Sender* sender,
const std::string& uuid,
- const std::pair<std::vector<storage::BlobItemBytesResponse>,
- storage::IPCBlobCreationCancelCode>& result);
+ const base::Optional<std::vector<storage::BlobItemBytesResponse>>&
+ result);
void StoreBlobDataForRequests(
const std::string& uuid,
« no previous file with comments | « content/child/blob_storage/blob_message_filter.cc ('k') | content/child/blob_storage/blob_transport_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698