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

Side by Side Diff: content/common/resource_request_body_impl.cc

Issue 2080223002: Revert of 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: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/common/resource_request_body_impl.h" 5 #include "content/common/resource_request_body_impl.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "content/common/page_state_serialization.h" 8 #include "content/common/page_state_serialization.h"
9 9
10 using blink::WebHTTPBody; 10 using blink::WebHTTPBody;
(...skipping 28 matching lines...) Expand all
39 void ResourceRequestBodyImpl::AppendFileSystemFileRange( 39 void ResourceRequestBodyImpl::AppendFileSystemFileRange(
40 const GURL& url, 40 const GURL& url,
41 uint64_t offset, 41 uint64_t offset,
42 uint64_t length, 42 uint64_t length,
43 const base::Time& expected_modification_time) { 43 const base::Time& expected_modification_time) {
44 elements_.push_back(Element()); 44 elements_.push_back(Element());
45 elements_.back().SetToFileSystemUrlRange(url, offset, length, 45 elements_.back().SetToFileSystemUrlRange(url, offset, length,
46 expected_modification_time); 46 expected_modification_time);
47 } 47 }
48 48
49 std::vector<base::FilePath> ResourceRequestBodyImpl::GetReferencedFiles()
50 const {
51 std::vector<base::FilePath> result;
52 for (const auto& element : *elements()) {
53 if (element.type() == Element::TYPE_FILE)
54 result.push_back(element.path());
55 }
56 return result;
57 }
58
59 ResourceRequestBodyImpl::~ResourceRequestBodyImpl() {} 49 ResourceRequestBodyImpl::~ResourceRequestBodyImpl() {}
60 50
61 } // namespace content 51 } // namespace content
OLDNEW
« no previous file with comments | « content/common/resource_request_body_impl.h ('k') | content/test/content_browser_test_utils_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698