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

Unified Diff: net/websockets/websocket_deflate_predictor_impl.cc

Issue 39193005: Introduce WebSocketDeflatePredictor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 2 months 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 side-by-side diff with in-line comments
Download patch
Index: net/websockets/websocket_deflate_predictor_impl.cc
diff --git a/net/websockets/websocket_deflate_predictor_impl.cc b/net/websockets/websocket_deflate_predictor_impl.cc
new file mode 100644
index 0000000000000000000000000000000000000000..8c358ec3d41154ab258304532287f5835d6ecf22
--- /dev/null
+++ b/net/websockets/websocket_deflate_predictor_impl.cc
@@ -0,0 +1,26 @@
+// 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.
+
+#include "base/basictypes.h"
+#include "base/memory/scoped_ptr.h"
+#include "base/memory/scoped_vector.h"
+#include "net/websockets/websocket_deflate_predictor_impl.h"
+
+namespace net {
+
+typedef WebSocketDeflatePredictor::Result Result;
+
+Result WebSocketDeflatePredictorImpl::Predict(
+ const ScopedVector<WebSocketFrame>& frames,
+ size_t frame_index) {
+ return DEFLATE;
+}
+
+void WebSocketDeflatePredictorImpl::RecordProcessedDataFrame(
+ const WebSocketFrame* frame) {}
+
+void WebSocketDeflatePredictorImpl::RecordSentDataFrame(
+ const WebSocketFrame* frame) {}
+
+} // namespace net

Powered by Google App Engine
This is Rietveld 408576698