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_IMPL_H_ | 5 #ifndef NET_WEBSOCKETS_WEBSOCKET_DEFLATE_PREDICTOR_IMPL_H_ |
6 #define NET_WEBSOCKETS_WEBSOCKET_DEFLATE_PREDICTOR_IMPL_H_ | 6 #define NET_WEBSOCKETS_WEBSOCKET_DEFLATE_PREDICTOR_IMPL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
11 #include "net/base/net_export.h" | 11 #include "net/base/net_export.h" |
12 #include "net/websockets/websocket_deflate_predictor.h" | 12 #include "net/websockets/websocket_deflate_predictor.h" |
13 | 13 |
14 namespace net { | 14 namespace net { |
15 | 15 |
16 struct WebSocketFrame; | 16 struct WebSocketFrame; |
17 | 17 |
18 class NET_EXPORT_PRIVATE WebSocketDeflatePredictorImpl | 18 class NET_EXPORT_PRIVATE WebSocketDeflatePredictorImpl |
19 : public WebSocketDeflatePredictor { | 19 : public WebSocketDeflatePredictor { |
20 public: | 20 public: |
21 virtual ~WebSocketDeflatePredictorImpl() {} | 21 virtual ~WebSocketDeflatePredictorImpl() {} |
22 | 22 |
23 virtual Result Predict(const ScopedVector<WebSocketFrame>& frames, | 23 virtual Result Predict(const ScopedVector<WebSocketFrame>& frames, |
24 size_t frame_index) OVERRIDE; | 24 size_t frame_index) override; |
25 virtual void RecordInputDataFrame(const WebSocketFrame* frame) OVERRIDE; | 25 virtual void RecordInputDataFrame(const WebSocketFrame* frame) override; |
26 virtual void RecordWrittenDataFrame(const WebSocketFrame* frame) OVERRIDE; | 26 virtual void RecordWrittenDataFrame(const WebSocketFrame* frame) override; |
27 }; | 27 }; |
28 | 28 |
29 } // namespace net | 29 } // namespace net |
30 | 30 |
31 #endif // NET_WEBSOCKETS_WEBSOCKET_DEFLATE_PREDICTOR_IMPL_H_ | 31 #endif // NET_WEBSOCKETS_WEBSOCKET_DEFLATE_PREDICTOR_IMPL_H_ |
OLD | NEW |