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..cacd86fa3484067de3be93eaca78da7325f003bb 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 "content/common/blob.mojom.h" |
#include "content/common/content_export.h" |
#include "ipc/ipc_platform_file.h" |
#include "storage/common/blob_storage/blob_storage_constants.h" |
@@ -39,6 +40,7 @@ struct BlobItemBytesResponse; |
namespace IPC { |
class Message; |
class Sender; |
+class SyncMessageFilter; |
} |
namespace content { |
@@ -88,10 +90,9 @@ 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 OnBuildBlobComplete(const std::string& uuid, |
+ mojom::BlobAssociatedPtr blob, |
+ mojom::BlobCreationCancelCode cancel_code); |
bool IsTransporting(const std::string& uuid) { |
return blob_storage_.find(uuid) != blob_storage_.end(); |
@@ -133,14 +134,18 @@ class CONTENT_EXPORT BlobTransportController { |
void StoreBlobDataForRequests( |
const std::string& uuid, |
+ const std::string& content_type, |
scoped_refptr<BlobConsolidation> consolidation, |
+ scoped_refptr<IPC::SyncMessageFilter> sync_message_filter, |
scoped_refptr<base::SingleThreadTaskRunner> main_runner); |
// Deletes the consolidation and calls ChildProcess::ReleaseProcess. |
void ReleaseBlobConsolidation(const std::string& uuid); |
scoped_refptr<base::SingleThreadTaskRunner> main_thread_runner_; |
+ mojom::BlobFactoryAssociatedPtr blob_factory_; |
std::map<std::string, scoped_refptr<BlobConsolidation>> blob_storage_; |
+ std::map<std::string, mojom::BlobAssociatedPtr> blob_proxies_; |
base::WeakPtrFactory<BlobTransportController> weak_factory_; |
DISALLOW_COPY_AND_ASSIGN(BlobTransportController); |