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

Unified Diff: content/common/resource_request_body_impl.cc

Issue 2062523002: Fixing renderer's access to a file from HTTP POST (after a xsite transfer). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed the new (redundant) access check from RDHI. Created 4 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/common/resource_request_body_impl.cc
diff --git a/content/common/resource_request_body_impl.cc b/content/common/resource_request_body_impl.cc
index d375e0f191cdfbdfef803774c41668348e11a80b..80212bd96a1860ecc6d90fc30653f7ac2d3fd0fb 100644
--- a/content/common/resource_request_body_impl.cc
+++ b/content/common/resource_request_body_impl.cc
@@ -46,6 +46,16 @@ void ResourceRequestBodyImpl::AppendFileSystemFileRange(
expected_modification_time);
}
+std::vector<base::FilePath> ResourceRequestBodyImpl::GetReferencedFiles()
+ const {
+ std::vector<base::FilePath> result;
+ for (const auto& element : *elements()) {
+ if (element.type() == Element::TYPE_FILE)
+ result.push_back(element.path());
+ }
+ return result;
+}
+
ResourceRequestBodyImpl::~ResourceRequestBodyImpl() {}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698