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

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

Issue 2954343005: Merge ResourceRequestBodyImpl and ResourceRequestBody. (Closed)
Patch Set: Remove 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
Index: content/browser/blob_storage/chrome_blob_storage_context.cc
diff --git a/content/browser/blob_storage/chrome_blob_storage_context.cc b/content/browser/blob_storage/chrome_blob_storage_context.cc
index 6dfe51cf6845faf3c5eaccf15841d78ad556dffd..843dabcd08b2e271c102ed2545e7be25a046c85c 100644
--- a/content/browser/blob_storage/chrome_blob_storage_context.cc
+++ b/content/browser/blob_storage/chrome_blob_storage_context.cc
@@ -19,11 +19,11 @@
#include "base/task_runner.h"
#include "base/task_scheduler/post_task.h"
#include "content/browser/resource_context_impl.h"
-#include "content/common/resource_request_body_impl.h"
#include "content/public/browser/blob_handle.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/common/content_features.h"
+#include "content/public/common/resource_request_body.h"
#include "storage/browser/blob/blob_data_builder.h"
#include "storage/browser/blob/blob_memory_controller.h"
#include "storage/browser/blob/blob_registry_impl.h"
@@ -210,7 +210,7 @@ storage::BlobStorageContext* GetBlobStorageContext(
return blob_storage_context->context();
}
-bool GetBodyBlobDataHandles(ResourceRequestBodyImpl* body,
+bool GetBodyBlobDataHandles(ResourceRequestBody* body,
ResourceContext* resource_context,
BlobHandles* blob_handles) {
blob_handles->clear();
@@ -220,8 +220,8 @@ bool GetBodyBlobDataHandles(ResourceRequestBodyImpl* body,
DCHECK(blob_context);
for (size_t i = 0; i < body->elements()->size(); ++i) {
- const ResourceRequestBodyImpl::Element& element = (*body->elements())[i];
- if (element.type() != ResourceRequestBodyImpl::Element::TYPE_BLOB)
+ const ResourceRequestBody::Element& element = (*body->elements())[i];
+ if (element.type() != ResourceRequestBody::Element::TYPE_BLOB)
continue;
std::unique_ptr<storage::BlobDataHandle> handle =
blob_context->GetBlobDataFromUUID(element.blob_uuid());
« no previous file with comments | « content/browser/blob_storage/chrome_blob_storage_context.h ('k') | content/browser/child_process_security_policy_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698