OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CONTENT_BROWSER_DOWNLOAD_BYTE_STREAM_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_BYTE_STREAM_H_ |
6 #define CONTENT_BROWSER_DOWNLOAD_BYTE_STREAM_H_ | 6 #define CONTENT_BROWSER_DOWNLOAD_BYTE_STREAM_H_ |
7 #pragma once | |
8 | 7 |
9 #include <set> | 8 #include <set> |
10 #include <utility> | 9 #include <utility> |
11 #include <deque> | 10 #include <deque> |
12 | 11 |
13 #include "base/callback.h" | 12 #include "base/callback.h" |
14 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
15 #include "base/synchronization/lock.h" | 14 #include "base/synchronization/lock.h" |
16 #include "content/public/browser/download_interrupt_reasons.h" | 15 #include "content/public/browser/download_interrupt_reasons.h" |
17 #include "net/base/io_buffer.h" | 16 #include "net/base/io_buffer.h" |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 CONTENT_EXPORT void CreateByteStream( | 179 CONTENT_EXPORT void CreateByteStream( |
181 scoped_refptr<base::SequencedTaskRunner> input_task_runner, | 180 scoped_refptr<base::SequencedTaskRunner> input_task_runner, |
182 scoped_refptr<base::SequencedTaskRunner> output_task_runner, | 181 scoped_refptr<base::SequencedTaskRunner> output_task_runner, |
183 size_t buffer_size, | 182 size_t buffer_size, |
184 scoped_ptr<ByteStreamWriter>* input, | 183 scoped_ptr<ByteStreamWriter>* input, |
185 scoped_ptr<ByteStreamReader>* output); | 184 scoped_ptr<ByteStreamReader>* output); |
186 | 185 |
187 } // namespace content | 186 } // namespace content |
188 | 187 |
189 #endif // CONTENT_BROWSER_DOWNLOAD_BYTE_STREAM_H_ | 188 #endif // CONTENT_BROWSER_DOWNLOAD_BYTE_STREAM_H_ |
OLD | NEW |