| 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_QUIC_QUIC_DATA_READER_H_ | 5 #ifndef NET_QUIC_QUIC_DATA_READER_H_ |
| 6 #define NET_QUIC_QUIC_DATA_READER_H_ | 6 #define NET_QUIC_QUIC_DATA_READER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/strings/string_piece.h" | 9 #include "base/strings/string_piece.h" |
| 10 #include "net/base/int128.h" | 10 #include "net/base/int128.h" |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 void OnFailure(); | 117 void OnFailure(); |
| 118 | 118 |
| 119 // The data buffer that we're reading from. | 119 // The data buffer that we're reading from. |
| 120 const char* data_; | 120 const char* data_; |
| 121 | 121 |
| 122 // The length of the data buffer that we're reading from. | 122 // The length of the data buffer that we're reading from. |
| 123 const size_t len_; | 123 const size_t len_; |
| 124 | 124 |
| 125 // The location of the next read from our data buffer. | 125 // The location of the next read from our data buffer. |
| 126 size_t pos_; | 126 size_t pos_; |
| 127 |
| 128 DISALLOW_COPY_AND_ASSIGN(QuicDataReader); |
| 127 }; | 129 }; |
| 128 | 130 |
| 129 } // namespace net | 131 } // namespace net |
| 130 | 132 |
| 131 #endif // NET_QUIC_QUIC_DATA_READER_H_ | 133 #endif // NET_QUIC_QUIC_DATA_READER_H_ |
| OLD | NEW |