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

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

Issue 2055053003: [BlobAsync] Disk support for blob storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 2 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_transport_controller.h
diff --git a/content/child/blob_storage/blob_transport_controller.h b/content/child/blob_storage/blob_transport_controller.h
index a0897e7519c52a6a57b49bd04ba0fea7895ef44a..0071d7b462b5cd20279334cc4146dbc0df279a28 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"
@@ -88,10 +89,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();
@@ -128,8 +126,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