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

Unified Diff: content/common/resource_request_body_impl.cc

Issue 2038813003: Making ResourceRequestBody part of //content's public API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... 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
« no previous file with comments | « content/common/resource_request_body_impl.h ('k') | content/content_common.gypi » ('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.cc b/content/common/resource_request_body_impl.cc
similarity index 72%
rename from content/common/resource_request_body.cc
rename to content/common/resource_request_body_impl.cc
index b2b0c5fd96dc41254a5ba15aca33fd8db3163174..d375e0f191cdfbdfef803774c41668348e11a80b 100644
--- a/content/common/resource_request_body.cc
+++ b/content/common/resource_request_body_impl.cc
@@ -2,7 +2,7 @@
// 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.h"
+#include "content/common/resource_request_body_impl.h"
#include "base/strings/utf_string_conversions.h"
#include "content/common/page_state_serialization.h"
@@ -12,18 +12,16 @@ using blink::WebString;
namespace content {
-ResourceRequestBody::ResourceRequestBody()
- : identifier_(0) {
-}
+ResourceRequestBodyImpl::ResourceRequestBodyImpl() : identifier_(0) {}
-void ResourceRequestBody::AppendBytes(const char* bytes, int bytes_len) {
+void ResourceRequestBodyImpl::AppendBytes(const char* bytes, int bytes_len) {
if (bytes_len > 0) {
elements_.push_back(Element());
elements_.back().SetToBytes(bytes, bytes_len);
}
}
-void ResourceRequestBody::AppendFileRange(
+void ResourceRequestBodyImpl::AppendFileRange(
const base::FilePath& file_path,
uint64_t offset,
uint64_t length,
@@ -33,12 +31,12 @@ void ResourceRequestBody::AppendFileRange(
expected_modification_time);
}
-void ResourceRequestBody::AppendBlob(const std::string& uuid) {
+void ResourceRequestBodyImpl::AppendBlob(const std::string& uuid) {
elements_.push_back(Element());
elements_.back().SetToBlob(uuid);
}
-void ResourceRequestBody::AppendFileSystemFileRange(
+void ResourceRequestBodyImpl::AppendFileSystemFileRange(
const GURL& url,
uint64_t offset,
uint64_t length,
@@ -48,7 +46,6 @@ void ResourceRequestBody::AppendFileSystemFileRange(
expected_modification_time);
}
-ResourceRequestBody::~ResourceRequestBody() {
-}
+ResourceRequestBodyImpl::~ResourceRequestBodyImpl() {}
} // namespace content
« no previous file with comments | « content/common/resource_request_body_impl.h ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698