forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
rch@chromium.org
committed
Sep 28, 2013
1 parent
ddeb501
commit 55bbd5c
Showing
10 changed files
with
155 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -178,4 +178,3 @@ class BalsaVisitorInterface { | |
} // namespace net | ||
|
||
#endif // NET_TOOLS_FLIP_SERVER_BALSA_VISITOR_INTERFACE_H_ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// 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 "net/tools/quic/test_tools/quic_in_memory_cache_peer.h" | ||
|
||
#include "net/tools/quic/quic_in_memory_cache.h" | ||
|
||
namespace net { | ||
namespace tools { | ||
namespace test { | ||
|
||
// static | ||
void QuicInMemoryCachePeer::ResetForTests() { | ||
QuicInMemoryCache::GetInstance()->ResetForTests(); | ||
} | ||
|
||
} // namespace test | ||
} // namespace tools | ||
} // namespace net |
Oops, something went wrong.