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

Unified Diff: content/browser/blob_storage/chrome_blob_storage_context.h

Issue 2960023002: Remove SupportsUserData from ResourceRequestBodyImpl. (Closed)
Patch Set: Merge, response to comment Created 3 years, 6 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
« no previous file with comments | « no previous file | content/browser/blob_storage/chrome_blob_storage_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9111e0861819cc6a7ca7ba32181685ecca7370dc..9c0312f700b1521e6eb280e8c79bbf576c5ffa18 100644
--- a/content/browser/blob_storage/chrome_blob_storage_context.h
+++ b/content/browser/blob_storage/chrome_blob_storage_context.h
@@ -9,12 +9,14 @@
#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 "services/service_manager/public/cpp/bind_source_info.h"
+#include "storage/browser/blob/blob_data_handle.h"
#include "storage/public/interfaces/blobs.mojom.h"
namespace base {
@@ -96,10 +98,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
« no previous file with comments | « no previous file | content/browser/blob_storage/chrome_blob_storage_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698