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_SPDY_SPDY_FRAME_READER_H_ | 5 #ifndef NET_SPDY_SPDY_FRAME_READER_H_ |
6 #define NET_SPDY_SPDY_FRAME_READER_H_ | 6 #define NET_SPDY_SPDY_FRAME_READER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/string_piece.h" | 9 #include "base/strings/string_piece.h" |
10 #include "net/base/net_export.h" | 10 #include "net/base/net_export.h" |
11 | 11 |
12 namespace net { | 12 namespace net { |
13 | 13 |
14 // Used for reading SPDY frames. Though there isn't really anything terribly | 14 // Used for reading SPDY frames. Though there isn't really anything terribly |
15 // SPDY-specific here, it's a helper class that's useful when doing SPDY | 15 // SPDY-specific here, it's a helper class that's useful when doing SPDY |
16 // framing. | 16 // framing. |
17 // | 17 // |
18 // To use, simply construct a SpdyFramerReader using the underlying buffer that | 18 // To use, simply construct a SpdyFramerReader using the underlying buffer that |
19 // you'd like to read fields from, then call one of the Read*() methods to | 19 // you'd like to read fields from, then call one of the Read*() methods to |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 // The length of the data buffer that we're reading from. | 114 // The length of the data buffer that we're reading from. |
115 const size_t len_; | 115 const size_t len_; |
116 | 116 |
117 // The location of the next read from our data buffer. | 117 // The location of the next read from our data buffer. |
118 size_t ofs_; | 118 size_t ofs_; |
119 }; | 119 }; |
120 | 120 |
121 } // namespace net | 121 } // namespace net |
122 | 122 |
123 #endif // NET_SPDY_SPDY_FRAME_READER_H_ | 123 #endif // NET_SPDY_SPDY_FRAME_READER_H_ |
OLD | NEW |