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

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

Issue 16514006: Update includes of message_loop_proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
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/message_loop_proxy.h" 9 #include "base/message_loop/message_loop_proxy.h"
10 #include "content/browser/streams/stream_handle_impl.h" 10 #include "content/browser/streams/stream_handle_impl.h"
11 #include "content/browser/streams/stream_read_observer.h" 11 #include "content/browser/streams/stream_read_observer.h"
12 #include "content/browser/streams/stream_registry.h" 12 #include "content/browser/streams/stream_registry.h"
13 #include "content/browser/streams/stream_write_observer.h" 13 #include "content/browser/streams/stream_write_observer.h"
14 #include "net/base/io_buffer.h" 14 #include "net/base/io_buffer.h"
15 15
16 namespace { 16 namespace {
17 // Start throttling the connection at about 1MB. 17 // Start throttling the connection at about 1MB.
18 const size_t kDeferSizeThreshold = 40 * 32768; 18 const size_t kDeferSizeThreshold = 40 * 32768;
19 } 19 }
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 write_observer_->OnSpaceAvailable(this); 141 write_observer_->OnSpaceAvailable(this);
142 } 142 }
143 143
144 void Stream::OnDataAvailable() { 144 void Stream::OnDataAvailable() {
145 if (read_observer_) 145 if (read_observer_)
146 read_observer_->OnDataAvailable(this); 146 read_observer_->OnDataAvailable(this);
147 } 147 }
148 148
149 } // namespace content 149 } // namespace content
150 150
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_browsertest.cc ('k') | content/browser/streams/stream_handle_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698