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_PREDICTOR_H_ | 5 #ifndef NET_WEBSOCKETS_WEBSOCKET_DEFLATE_PREDICTOR_H_ |
6 #define NET_WEBSOCKETS_WEBSOCKET_DEFLATE_PREDICTOR_H_ | 6 #define NET_WEBSOCKETS_WEBSOCKET_DEFLATE_PREDICTOR_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 |
9 #include <vector> | 10 #include <vector> |
10 | 11 |
11 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
12 #include "net/base/net_export.h" | 13 #include "net/base/net_export.h" |
13 | 14 |
14 namespace net { | 15 namespace net { |
15 | 16 |
16 struct WebSocketFrame; | 17 struct WebSocketFrame; |
17 | 18 |
18 // WebSocketDeflatePredictor is an interface class used for judging whether | 19 // WebSocketDeflatePredictor is an interface class used for judging whether |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 // Records frame data for future prediction. | 52 // Records frame data for future prediction. |
52 // Only data frames should be recorded. Do not pass control frames' data. | 53 // Only data frames should be recorded. Do not pass control frames' data. |
53 // All data frames written by the stream must be recorded in order | 54 // All data frames written by the stream must be recorded in order |
54 // regardless of whether they are compressed or not. | 55 // regardless of whether they are compressed or not. |
55 virtual void RecordWrittenDataFrame(const WebSocketFrame* frame) = 0; | 56 virtual void RecordWrittenDataFrame(const WebSocketFrame* frame) = 0; |
56 }; | 57 }; |
57 | 58 |
58 } // namespace net | 59 } // namespace net |
59 | 60 |
60 #endif // NET_WEBSOCKETS_WEBSOCKET_DEFLATE_PREDICTOR_H_ | 61 #endif // NET_WEBSOCKETS_WEBSOCKET_DEFLATE_PREDICTOR_H_ |
OLD | NEW |