| 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 NET_BASE_UPLOAD_DATA_STREAM_H_ | 5 #ifndef NET_BASE_UPLOAD_DATA_STREAM_H_ |
| 6 #define NET_BASE_UPLOAD_DATA_STREAM_H_ | 6 #define NET_BASE_UPLOAD_DATA_STREAM_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "net/base/completion_callback.h" | 14 #include "net/base/completion_callback.h" |
| 15 #include "net/base/net_export.h" | 15 #include "net/base/net_export.h" |
| 16 #include "net/base/upload_progress.h" | 16 #include "net/base/upload_progress.h" |
| 17 #include "net/log/net_log_with_source.h" | 17 #include "net/log/net_log_with_source.h" |
| 18 | 18 |
| 19 namespace net { | 19 namespace net { |
| 20 | 20 |
| 21 class DrainableIOBuffer; | |
| 22 class IOBuffer; | 21 class IOBuffer; |
| 23 class UploadElementReader; | 22 class UploadElementReader; |
| 24 | 23 |
| 25 // A class for retrieving all data to be sent as a request body. Supports both | 24 // A class for retrieving all data to be sent as a request body. Supports both |
| 26 // chunked and non-chunked uploads. | 25 // chunked and non-chunked uploads. |
| 27 class NET_EXPORT UploadDataStream { | 26 class NET_EXPORT UploadDataStream { |
| 28 public: | 27 public: |
| 29 // |identifier| identifies a particular upload instance, which is used by the | 28 // |identifier| identifies a particular upload instance, which is used by the |
| 30 // cache to formulate a cache key. This value should be unique across browser | 29 // cache to formulate a cache key. This value should be unique across browser |
| 31 // sessions. A value of 0 is used to indicate an unspecified identifier. | 30 // sessions. A value of 0 is used to indicate an unspecified identifier. |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 CompletionCallback callback_; | 142 CompletionCallback callback_; |
| 144 | 143 |
| 145 NetLogWithSource net_log_; | 144 NetLogWithSource net_log_; |
| 146 | 145 |
| 147 DISALLOW_COPY_AND_ASSIGN(UploadDataStream); | 146 DISALLOW_COPY_AND_ASSIGN(UploadDataStream); |
| 148 }; | 147 }; |
| 149 | 148 |
| 150 } // namespace net | 149 } // namespace net |
| 151 | 150 |
| 152 #endif // NET_BASE_UPLOAD_DATA_STREAM_H_ | 151 #endif // NET_BASE_UPLOAD_DATA_STREAM_H_ |
| OLD | NEW |