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

Side by Side Diff: content/browser/streams/stream.cc

Issue 1967823004: Fix include path for moved thread_task_runner_handle.h header in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a1_move_task_runner_handle
Patch Set: Created 4 years, 7 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/browser/streams/stream.h" 5 #include "content/browser/streams/stream.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/thread_task_runner_handle.h" 10 #include "base/threading/thread_task_runner_handle.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "content/browser/streams/stream_handle_impl.h" 12 #include "content/browser/streams/stream_handle_impl.h"
13 #include "content/browser/streams/stream_read_observer.h" 13 #include "content/browser/streams/stream_read_observer.h"
14 #include "content/browser/streams/stream_registry.h" 14 #include "content/browser/streams/stream_registry.h"
15 #include "content/browser/streams/stream_write_observer.h" 15 #include "content/browser/streams/stream_write_observer.h"
16 #include "net/base/io_buffer.h" 16 #include "net/base/io_buffer.h"
17 #include "net/http/http_response_headers.h" 17 #include "net/http/http_response_headers.h"
18 18
19 namespace { 19 namespace {
20 // Start throttling the connection at about 1MB. 20 // Start throttling the connection at about 1MB.
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 read_observer_->OnDataAvailable(this); 193 read_observer_->OnDataAvailable(this);
194 } 194 }
195 195
196 void Stream::ClearBuffer() { 196 void Stream::ClearBuffer() {
197 data_ = NULL; 197 data_ = NULL;
198 data_length_ = 0; 198 data_length_ = 0;
199 data_bytes_read_ = 0; 199 data_bytes_read_ = 0;
200 } 200 }
201 201
202 } // namespace content 202 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/storage_partition_impl_unittest.cc ('k') | content/browser/streams/stream_handle_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698