| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_WEBSOCKETS_WEBSOCKET_DEFLATE_STREAM_H_ | 5 #ifndef NET_WEBSOCKETS_WEBSOCKET_DEFLATE_STREAM_H_ |
| 6 #define NET_WEBSOCKETS_WEBSOCKET_DEFLATE_STREAM_H_ | 6 #define NET_WEBSOCKETS_WEBSOCKET_DEFLATE_STREAM_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "net/base/completion_callback.h" | 15 #include "net/base/completion_callback.h" |
| 16 #include "net/base/net_export.h" | 16 #include "net/base/net_export.h" |
| 17 #include "net/websockets/websocket_deflater.h" | 17 #include "net/websockets/websocket_deflater.h" |
| 18 #include "net/websockets/websocket_frame.h" | 18 #include "net/websockets/websocket_frame.h" |
| 19 #include "net/websockets/websocket_inflater.h" | 19 #include "net/websockets/websocket_inflater.h" |
| 20 #include "net/websockets/websocket_stream.h" | 20 #include "net/websockets/websocket_stream.h" |
| 21 | 21 |
| 22 class GURL; | |
| 23 | |
| 24 namespace net { | 22 namespace net { |
| 25 | 23 |
| 26 class WebSocketDeflateParameters; | 24 class WebSocketDeflateParameters; |
| 27 class WebSocketDeflatePredictor; | 25 class WebSocketDeflatePredictor; |
| 28 | 26 |
| 29 // WebSocketDeflateStream is a WebSocketStream subclass. | 27 // WebSocketDeflateStream is a WebSocketStream subclass. |
| 30 // WebSocketDeflateStream is for permessage-deflate WebSocket extension[1]. | 28 // WebSocketDeflateStream is for permessage-deflate WebSocket extension[1]. |
| 31 // | 29 // |
| 32 // WebSocketDeflateStream::ReadFrames and WriteFrames may change frame | 30 // WebSocketDeflateStream::ReadFrames and WriteFrames may change frame |
| 33 // boundary. In particular, if a control frame is placed in the middle of | 31 // boundary. In particular, if a control frame is placed in the middle of |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 WebSocketFrameHeader::OpCode current_reading_opcode_; | 100 WebSocketFrameHeader::OpCode current_reading_opcode_; |
| 103 WebSocketFrameHeader::OpCode current_writing_opcode_; | 101 WebSocketFrameHeader::OpCode current_writing_opcode_; |
| 104 std::unique_ptr<WebSocketDeflatePredictor> predictor_; | 102 std::unique_ptr<WebSocketDeflatePredictor> predictor_; |
| 105 | 103 |
| 106 DISALLOW_COPY_AND_ASSIGN(WebSocketDeflateStream); | 104 DISALLOW_COPY_AND_ASSIGN(WebSocketDeflateStream); |
| 107 }; | 105 }; |
| 108 | 106 |
| 109 } // namespace net | 107 } // namespace net |
| 110 | 108 |
| 111 #endif // NET_WEBSOCKETS_WEBSOCKET_DEFLATE_STREAM_H_ | 109 #endif // NET_WEBSOCKETS_WEBSOCKET_DEFLATE_STREAM_H_ |
| OLD | NEW |