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

Unified Diff: content/common/resource_request_body_impl.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
« no previous file with comments | « content/common/resource_request_body_impl.h ('k') | content/network/url_loader_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
deleted file mode 100644
index 2484aec00e0bdb96be09f8f183f954c56d5b1382..0000000000000000000000000000000000000000
--- a/content/common/resource_request_body_impl.cc
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/common/resource_request_body_impl.h"
-
-#include "base/strings/utf_string_conversions.h"
-#include "content/common/page_state_serialization.h"
-
-using blink::WebHTTPBody;
-using blink::WebString;
-
-namespace content {
-
-ResourceRequestBodyImpl::ResourceRequestBodyImpl()
- : identifier_(0),
- contains_sensitive_info_(false) {}
-
-void ResourceRequestBodyImpl::AppendBytes(const char* bytes, int bytes_len) {
- if (bytes_len > 0) {
- elements_.push_back(Element());
- elements_.back().SetToBytes(bytes, bytes_len);
- }
-}
-
-void ResourceRequestBodyImpl::AppendFileRange(
- const base::FilePath& file_path,
- uint64_t offset,
- uint64_t length,
- const base::Time& expected_modification_time) {
- elements_.push_back(Element());
- elements_.back().SetToFilePathRange(file_path, offset, length,
- expected_modification_time);
-}
-
-void ResourceRequestBodyImpl::AppendBlob(const std::string& uuid) {
- elements_.push_back(Element());
- elements_.back().SetToBlob(uuid);
-}
-
-void ResourceRequestBodyImpl::AppendFileSystemFileRange(
- const GURL& url,
- uint64_t offset,
- uint64_t length,
- const base::Time& expected_modification_time) {
- elements_.push_back(Element());
- elements_.back().SetToFileSystemUrlRange(url, offset, length,
- 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
« no previous file with comments | « content/common/resource_request_body_impl.h ('k') | content/network/url_loader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698