Index: net/websockets/websocket_deflate_predictor_impl.h |
diff --git a/net/websockets/websocket_deflate_predictor_impl.h b/net/websockets/websocket_deflate_predictor_impl.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8e2b94f2424f58262d4db9f26452e3005e61b0b3 |
--- /dev/null |
+++ b/net/websockets/websocket_deflate_predictor_impl.h |
@@ -0,0 +1,33 @@ |
+// Copyright 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef NET_WEBSOCKETS_WEBSOCKET_DEFLATE_PREDICTOR_IMPL_H_ |
+#define NET_WEBSOCKETS_WEBSOCKET_DEFLATE_PREDICTOR_IMPL_H_ |
+ |
+#include "base/basictypes.h" |
+#include "base/memory/scoped_ptr.h" |
+#include "base/memory/scoped_vector.h" |
+#include "net/base/net_export.h" |
+#include "net/websockets/websocket_deflate_predictor.h" |
+ |
+namespace net { |
+ |
+struct WebSocketFrame; |
+ |
+// WebSocketDeflatePredictor is an interface class used for judging whether |
+// a WebSocketDeflateStream should compress a message or not. |
Adam Rice
2013/10/25 13:05:25
This comment is wrong.
yhirano
2013/10/28 01:42:46
Thanks, done.
|
+class NET_EXPORT_PRIVATE WebSocketDeflatePredictorImpl |
+ : public WebSocketDeflatePredictor { |
+ public: |
+ virtual ~WebSocketDeflatePredictorImpl() {} |
+ |
+ virtual Result Predict(const ScopedVector<WebSocketFrame>& frames, |
+ size_t frame_index) OVERRIDE; |
+ virtual void RecordProcessedDataFrame(const WebSocketFrame* frame) OVERRIDE; |
+ virtual void RecordSentDataFrame(const WebSocketFrame* frame) OVERRIDE; |
+}; |
+ |
+} // namespace net |
+ |
+#endif // NET_WEBSOCKETS_WEBSOCKET_DEFLATE_PREDICTOR_IMPL_H_ |