| 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_BUFFERED_SPDY_FRAMER_H_ | 5 #ifndef NET_SPDY_BUFFERED_SPDY_FRAMER_H_ |
| 6 #define NET_SPDY_BUFFERED_SPDY_FRAMER_H_ | 6 #define NET_SPDY_BUFFERED_SPDY_FRAMER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 SpdyFrame* CreateWindowUpdate( | 172 SpdyFrame* CreateWindowUpdate( |
| 173 SpdyStreamId stream_id, | 173 SpdyStreamId stream_id, |
| 174 uint32 delta_window_size) const; | 174 uint32 delta_window_size) const; |
| 175 SpdyFrame* CreateCredentialFrame( | 175 SpdyFrame* CreateCredentialFrame( |
| 176 const SpdyCredential& credential) const; | 176 const SpdyCredential& credential) const; |
| 177 SpdyDataFrame* CreateDataFrame(SpdyStreamId stream_id, | 177 SpdyDataFrame* CreateDataFrame(SpdyStreamId stream_id, |
| 178 const char* data, | 178 const char* data, |
| 179 uint32 len, | 179 uint32 len, |
| 180 SpdyDataFlags flags); | 180 SpdyDataFlags flags); |
| 181 SpdyPriority GetHighestPriority() const; | 181 SpdyPriority GetHighestPriority() const; |
| 182 bool IsCompressible(const SpdyFrame& frame) const; | |
| 183 | 182 |
| 184 int frames_received() const { return frames_received_; } | 183 int frames_received() const { return frames_received_; } |
| 185 | 184 |
| 186 private: | 185 private: |
| 187 // The size of the header_buffer_. | 186 // The size of the header_buffer_. |
| 188 enum { kHeaderBufferSize = 32 * 1024 }; | 187 enum { kHeaderBufferSize = 32 * 1024 }; |
| 189 | 188 |
| 190 void InitHeaderStreaming(SpdyStreamId stream_id); | 189 void InitHeaderStreaming(SpdyStreamId stream_id); |
| 191 | 190 |
| 192 SpdyFramer spdy_framer_; | 191 SpdyFramer spdy_framer_; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 211 bool unidirectional; | 210 bool unidirectional; |
| 212 }; | 211 }; |
| 213 scoped_ptr<ControlFrameFields> control_frame_fields_; | 212 scoped_ptr<ControlFrameFields> control_frame_fields_; |
| 214 | 213 |
| 215 DISALLOW_COPY_AND_ASSIGN(BufferedSpdyFramer); | 214 DISALLOW_COPY_AND_ASSIGN(BufferedSpdyFramer); |
| 216 }; | 215 }; |
| 217 | 216 |
| 218 } // namespace net | 217 } // namespace net |
| 219 | 218 |
| 220 #endif // NET_SPDY_BUFFERED_SPDY_FRAMER_H_ | 219 #endif // NET_SPDY_BUFFERED_SPDY_FRAMER_H_ |
| OLD | NEW |