| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #ifndef WEBRTC_BASE_MULTIPART_H__ | 11 #ifndef WEBRTC_BASE_MULTIPART_H__ |
| 12 #define WEBRTC_BASE_MULTIPART_H__ | 12 #define WEBRTC_BASE_MULTIPART_H__ |
| 13 | 13 |
| 14 #include <string> | 14 #include <string> |
| 15 #include <vector> | 15 #include <vector> |
| 16 | 16 |
| 17 #include "webrtc/base/constructormagic.h" |
| 17 #include "webrtc/base/sigslot.h" | 18 #include "webrtc/base/sigslot.h" |
| 18 #include "webrtc/base/stream.h" | 19 #include "webrtc/base/stream.h" |
| 19 | 20 |
| 20 namespace rtc { | 21 namespace rtc { |
| 21 | 22 |
| 22 /////////////////////////////////////////////////////////////////////////////// | 23 /////////////////////////////////////////////////////////////////////////////// |
| 23 // MultipartStream - Implements an RFC2046 multipart stream by concatenating | 24 // MultipartStream - Implements an RFC2046 multipart stream by concatenating |
| 24 // the supplied parts together, and adding the correct boundaries. | 25 // the supplied parts together, and adding the correct boundaries. |
| 25 /////////////////////////////////////////////////////////////////////////////// | 26 /////////////////////////////////////////////////////////////////////////////// |
| 26 | 27 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 bool adding_; | 75 bool adding_; |
| 75 size_t current_; // The index into parts_ of the current read position. | 76 size_t current_; // The index into parts_ of the current read position. |
| 76 size_t position_; // The current read position in bytes. | 77 size_t position_; // The current read position in bytes. |
| 77 | 78 |
| 78 RTC_DISALLOW_COPY_AND_ASSIGN(MultipartStream); | 79 RTC_DISALLOW_COPY_AND_ASSIGN(MultipartStream); |
| 79 }; | 80 }; |
| 80 | 81 |
| 81 } // namespace rtc | 82 } // namespace rtc |
| 82 | 83 |
| 83 #endif // WEBRTC_BASE_MULTIPART_H__ | 84 #endif // WEBRTC_BASE_MULTIPART_H__ |
| OLD | NEW |