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

Unified Diff: content/browser/byte_stream.cc

Issue 21839002: Clean up on byte_stream (mainly style and includes) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rdsmith's comments Created 7 years, 4 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/browser/byte_stream.h ('k') | content/browser/byte_stream_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/byte_stream.cc
diff --git a/content/browser/byte_stream.cc b/content/browser/byte_stream.cc
index d1f5e175b23ff2595b19599d0370d391d68f2882..a8b8f29e9e63b326229b8c09aa3818eefd98adbd 100644
--- a/content/browser/byte_stream.cc
+++ b/content/browser/byte_stream.cc
@@ -4,10 +4,13 @@
#include "content/browser/byte_stream.h"
+#include <deque>
+#include <set>
+#include <utility>
+
#include "base/bind.h"
#include "base/location.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/weak_ptr.h"
#include "base/sequenced_task_runner.h"
namespace content {
@@ -263,7 +266,7 @@ void ByteStreamWriterImpl::PostToPeer(bool complete, int status) {
// Valid contexts in which to call.
DCHECK(complete || 0 != input_contents_size_);
- scoped_ptr<ContentVector> transfer_buffer(new ContentVector);
+ scoped_ptr<ContentVector> transfer_buffer;
size_t buffer_size = 0;
if (0 != input_contents_size_) {
transfer_buffer.reset(new ContentVector);
@@ -370,8 +373,8 @@ void ByteStreamReaderImpl::TransferDataInternal(
if (transfer_buffer) {
available_contents_.insert(available_contents_.end(),
- transfer_buffer->begin(),
- transfer_buffer->end());
+ transfer_buffer->begin(),
+ transfer_buffer->end());
}
if (source_complete) {
@@ -408,7 +411,6 @@ void ByteStreamReaderImpl::MaybeUpdateInput() {
} // namespace
-
const int ByteStreamWriter::kFractionBufferBeforeSending = 3;
const int ByteStreamReader::kFractionReadBeforeWindowUpdate = 3;
« no previous file with comments | « content/browser/byte_stream.h ('k') | content/browser/byte_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698