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

Unified Diff: content/common/resource_request_body.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 unnecessary logging + simplified condition of an "if" statement. 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.cc
diff --git a/content/common/resource_request_body.cc b/content/common/resource_request_body.cc
index b2b0c5fd96dc41254a5ba15aca33fd8db3163174..f1fb8cebe9b165593eb18f831bc636fd5cebbaeb 100644
--- a/content/common/resource_request_body.cc
+++ b/content/common/resource_request_body.cc
@@ -48,6 +48,15 @@ void ResourceRequestBody::AppendFileSystemFileRange(
expected_modification_time);
}
+std::vector<base::FilePath> ResourceRequestBody::GetReferencedFiles() const {
+ std::vector<base::FilePath> result;
+ for (const auto& element : *elements()) {
+ if (element.type() == Element::TYPE_FILE)
Łukasz Anforowicz 2016/06/14 01:07:17 AFAICT this is the only type that can refer to fil
Charlie Reis 2016/06/16 20:22:12 Yeah, filesystem: URLs are associated with origin-
Łukasz Anforowicz 2016/06/16 22:05:04 Thanks for looking into this.
Łukasz Anforowicz 2016/06/16 23:33:55 Actually, I think we can land the current CL as-is
Łukasz Anforowicz 2016/06/17 00:10:32 Hmmm... I think that the only way to refer to file
Charlie Reis 2016/06/17 07:13:35 Sorry for the confusion-- I was agreeing with your
Łukasz Anforowicz 2016/06/17 16:44:47 Ok.
+ result.push_back(element.path());
+ }
+ return result;
+}
+
ResourceRequestBody::~ResourceRequestBody() {
}

Powered by Google App Engine
This is Rietveld 408576698