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() { |
} |