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

Unified Diff: net/base/upload_data.h

Issue 9270030: net: Don't merge HTTP headers and body if the body is not in memory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win build Created 8 years, 11 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 | « no previous file | net/base/upload_data.cc » ('j') | net/base/upload_data.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/upload_data.h
diff --git a/net/base/upload_data.h b/net/base/upload_data.h
index 18136e7af166afb125155a126b7d71622eb23afb..31c1958a6966c9e321f554754819b54f0c98726e 100644
--- a/net/base/upload_data.h
+++ b/net/base/upload_data.h
@@ -166,6 +166,10 @@ class NET_EXPORT UploadData : public base::RefCounted<UploadData> {
// Returns the total size in bytes of the data to upload.
uint64 GetContentLength();
+ // Returns true if the upload data is entirely in memory (i.e. the
+ // upload data is not chunked, and all elemnts are of TYPE_BYTES).
+ bool IsInMemory() const;
+
std::vector<Element>* elements() {
return &elements_;
}
« no previous file with comments | « no previous file | net/base/upload_data.cc » ('j') | net/base/upload_data.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698