Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: net/websockets/websocket_deflate_predictor_impl.h

Issue 39193005: Introduce WebSocketDeflatePredictor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef NET_WEBSOCKETS_WEBSOCKET_DEFLATE_PREDICTOR_IMPL_H_
6 #define NET_WEBSOCKETS_WEBSOCKET_DEFLATE_PREDICTOR_IMPL_H_
7
8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/scoped_vector.h"
11 #include "net/base/net_export.h"
12 #include "net/websockets/websocket_deflate_predictor.h"
13
14 namespace net {
15
16 struct WebSocketFrame;
17
18 // WebSocketDeflatePredictor is an interface class used for judging whether
19 // 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.
20 class NET_EXPORT_PRIVATE WebSocketDeflatePredictorImpl
21 : public WebSocketDeflatePredictor {
22 public:
23 virtual ~WebSocketDeflatePredictorImpl() {}
24
25 virtual Result Predict(const ScopedVector<WebSocketFrame>& frames,
26 size_t frame_index) OVERRIDE;
27 virtual void RecordProcessedDataFrame(const WebSocketFrame* frame) OVERRIDE;
28 virtual void RecordSentDataFrame(const WebSocketFrame* frame) OVERRIDE;
29 };
30
31 } // namespace net
32
33 #endif // NET_WEBSOCKETS_WEBSOCKET_DEFLATE_PREDICTOR_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698