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

Unified Diff: net/tools/flip_server/noop_balsa_visitor.h

Issue 24596008: Cleanup of QuicInMemoryCache to sync with internal version. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add missing files Created 7 years, 3 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
« no previous file with comments | « net/tools/flip_server/balsa_visitor_interface.h ('k') | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/flip_server/noop_balsa_visitor.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 0000000000000000000000000000000000000000..1ab444a3ff82cc8659c73752fc9e0e886a3d6741
--- /dev/null
+++ b/net/tools/flip_server/noop_balsa_visitor.h
@@ -0,0 +1,60 @@
+// Copyright (c) 2009 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_
« no previous file with comments | « net/tools/flip_server/balsa_visitor_interface.h ('k') | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698