summaryrefslogtreecommitdiffstats
path: root/net/tools/flip_server
diff options
context:
space:
mode:
authorrch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-28 16:48:53 +0000
committerrch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-28 16:48:53 +0000
commit55bbd5c88a0d84767bbcb67c09d610477fb8ecb5 (patch)
treed5760aa03e6ac78b5134d0b8f711e74262f86ae4 /net/tools/flip_server
parentddeb50141923006ec1020dc8003824ff91316ad2 (diff)
downloadchromium_src-55bbd5c88a0d84767bbcb67c09d610477fb8ecb5.zip
chromium_src-55bbd5c88a0d84767bbcb67c09d610477fb8ecb5.tar.gz
chromium_src-55bbd5c88a0d84767bbcb67c09d610477fb8ecb5.tar.bz2
Cleanup of QuicInMemoryCache to sync with internal version.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=225588 Review URL: https://codereview.chromium.org/24596008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225856 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/tools/flip_server')
-rw-r--r--net/tools/flip_server/balsa_visitor_interface.h1
-rw-r--r--net/tools/flip_server/noop_balsa_visitor.h60
2 files changed, 60 insertions, 1 deletions
diff --git a/net/tools/flip_server/balsa_visitor_interface.h b/net/tools/flip_server/balsa_visitor_interface.h
index 75283ac..2542723 100644
--- a/net/tools/flip_server/balsa_visitor_interface.h
+++ b/net/tools/flip_server/balsa_visitor_interface.h
@@ -178,4 +178,3 @@ class BalsaVisitorInterface {
} // namespace net
#endif // NET_TOOLS_FLIP_SERVER_BALSA_VISITOR_INTERFACE_H_
-
diff --git a/net/tools/flip_server/noop_balsa_visitor.h b/net/tools/flip_server/noop_balsa_visitor.h
new file mode 100644
index 0000000..04f4aa6
--- /dev/null
+++ b/net/tools/flip_server/noop_balsa_visitor.h
@@ -0,0 +1,60 @@
+// 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.
+//
+// Provides empty BalsaVisitorInterface overrides for convenience.
+// Intended to be used as a base class for BalsaVisitorInterface subclasses that
+// only need to override a small number of methods.
+
+#ifndef NET_TOOLS_FLIP_SERVER_NOOP_BALSA_VISITOR_H_
+#define NET_TOOLS_FLIP_SERVER_NOOP_BALSA_VISITOR_H_
+
+#include "net/tools/flip_server/balsa_visitor_interface.h"
+
+namespace net {
+
+// See file comment above.
+class NoOpBalsaVisitor : public BalsaVisitorInterface {
+ public:
+ NoOpBalsaVisitor() { }
+ virtual ~NoOpBalsaVisitor() { }
+
+ virtual void ProcessBodyInput(const char* input, size_t size) OVERRIDE { }
+ virtual void ProcessBodyData(const char* input, size_t size) OVERRIDE { }
+ virtual void ProcessHeaderInput(const char* input, size_t size) OVERRIDE { }
+ virtual void ProcessTrailerInput(const char* input, size_t size) OVERRIDE { }
+ virtual void ProcessHeaders(const BalsaHeaders& headers) OVERRIDE { }
+
+ virtual void ProcessRequestFirstLine(const char* line_input,
+ size_t line_length,
+ const char* method_input,
+ size_t method_length,
+ const char* request_uri_input,
+ size_t request_uri_length,
+ const char* version_input,
+ size_t version_length) OVERRIDE { }
+ virtual void ProcessResponseFirstLine(const char* line_input,
+ size_t line_length,
+ const char* version_input,
+ size_t version_length,
+ const char* status_input,
+ size_t status_length,
+ const char* reason_input,
+ size_t reason_length) OVERRIDE { }
+ virtual void ProcessChunkLength(size_t chunk_length) OVERRIDE { }
+ virtual void ProcessChunkExtensions(const char* input, size_t size) OVERRIDE {
+ }
+ virtual void HeaderDone() OVERRIDE { }
+ virtual void MessageDone() OVERRIDE { }
+ virtual void HandleHeaderError(BalsaFrame* framer) OVERRIDE { }
+ virtual void HandleHeaderWarning(BalsaFrame* framer) OVERRIDE { }
+ virtual void HandleChunkingError(BalsaFrame* framer) OVERRIDE { }
+ virtual void HandleBodyError(BalsaFrame* framer) OVERRIDE { }
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(NoOpBalsaVisitor);
+};
+
+} // namespace net
+
+#endif // NET_TOOLS_FLIP_SERVER_NOOP_BALSA_VISITOR_H_