OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/loader/stream_writer.h" | 5 #include "content/browser/loader/stream_writer.h" |
6 | 6 |
7 #include "base/guid.h" | 7 #include "base/guid.h" |
| 8 #include "content/browser/loader/resource_controller.h" |
8 #include "content/browser/streams/stream.h" | 9 #include "content/browser/streams/stream.h" |
9 #include "content/browser/streams/stream_registry.h" | 10 #include "content/browser/streams/stream_registry.h" |
10 #include "content/public/browser/resource_controller.h" | |
11 #include "net/base/io_buffer.h" | 11 #include "net/base/io_buffer.h" |
12 #include "url/gurl.h" | 12 #include "url/gurl.h" |
13 #include "url/url_constants.h" | 13 #include "url/url_constants.h" |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 | 16 |
17 StreamWriter::StreamWriter() : controller_(nullptr), immediate_mode_(false) { | 17 StreamWriter::StreamWriter() : controller_(nullptr), immediate_mode_(false) { |
18 } | 18 } |
19 | 19 |
20 StreamWriter::~StreamWriter() { | 20 StreamWriter::~StreamWriter() { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 76 |
77 void StreamWriter::OnSpaceAvailable(Stream* stream) { | 77 void StreamWriter::OnSpaceAvailable(Stream* stream) { |
78 controller_->Resume(); | 78 controller_->Resume(); |
79 } | 79 } |
80 | 80 |
81 void StreamWriter::OnClose(Stream* stream) { | 81 void StreamWriter::OnClose(Stream* stream) { |
82 controller_->Cancel(); | 82 controller_->Cancel(); |
83 } | 83 } |
84 | 84 |
85 } // namespace content | 85 } // namespace content |
OLD | NEW |