| Index: content/browser/blob_storage/chrome_blob_storage_context.h
|
| diff --git a/content/browser/blob_storage/chrome_blob_storage_context.h b/content/browser/blob_storage/chrome_blob_storage_context.h
|
| index bd8b92ef4af4f9e64e16791d9e2c0421aea35594..ea81ee428b8dd5382beb82ed7d19bac3e1f24967 100644
|
| --- a/content/browser/blob_storage/chrome_blob_storage_context.h
|
| +++ b/content/browser/blob_storage/chrome_blob_storage_context.h
|
| @@ -9,11 +9,13 @@
|
| #include <stdint.h>
|
|
|
| #include <memory>
|
| +#include <vector>
|
|
|
| #include "base/files/file_path.h"
|
| #include "base/memory/ref_counted.h"
|
| #include "base/sequenced_task_runner_helpers.h"
|
| #include "content/common/content_export.h"
|
| +#include "storage/browser/blob/blob_data_handle.h"
|
|
|
| namespace base {
|
| class FilePath;
|
| @@ -89,10 +91,14 @@ struct ChromeBlobStorageContextDeleter {
|
| storage::BlobStorageContext* GetBlobStorageContext(
|
| ChromeBlobStorageContext* blob_storage_context);
|
|
|
| -// Attaches blob data handles to the ResourceRequestBodyImpl body passed in.
|
| -// This is used for POST and PUT requests.
|
| -bool AttachRequestBodyBlobDataHandles(ResourceRequestBodyImpl* body,
|
| - ResourceContext* resource_context);
|
| +using BlobHandles = std::vector<std::unique_ptr<storage::BlobDataHandle>>;
|
| +
|
| +// Attempts to create a vector of BlobDataHandles that ensure any blob data
|
| +// associated with |body| isn't cleaned up until the handles are destroyed.
|
| +// Returns false on failure. This is used for POST and PUT requests.
|
| +bool GetBodyBlobDataHandles(ResourceRequestBodyImpl* body,
|
| + ResourceContext* resource_context,
|
| + BlobHandles* blob_handles);
|
|
|
| } // namespace content
|
|
|
|
|