| Index: net/tools/quic/quic_in_memory_cache.h
|
| diff --git a/net/tools/quic/quic_in_memory_cache.h b/net/tools/quic/quic_in_memory_cache.h
|
| index ce5b43d86c474158aeb81031c15f2b404ce90886..f92c67922df9235fa166b577755b6ebecaa8fa4d 100644
|
| --- a/net/tools/quic/quic_in_memory_cache.h
|
| +++ b/net/tools/quic/quic_in_memory_cache.h
|
| @@ -10,9 +10,7 @@
|
| #include "base/containers/hash_tables.h"
|
| #include "base/memory/singleton.h"
|
| #include "base/strings/string_piece.h"
|
| -#include "net/tools/balsa/balsa_frame.h"
|
| -#include "net/tools/balsa/balsa_headers.h"
|
| -#include "net/tools/balsa/noop_balsa_visitor.h"
|
| +#include "net/spdy/spdy_framer.h"
|
|
|
| template <typename T> struct DefaultSingletonTraits;
|
|
|
| @@ -41,12 +39,12 @@ class QuicInMemoryCache {
|
| // Container for response header/body pairs.
|
| class Response {
|
| public:
|
| - Response() : response_type_(REGULAR_RESPONSE) {}
|
| - ~Response() {}
|
| + Response();
|
| + ~Response();
|
|
|
| - SpecialResponseType response_type() const { return response_type_; }
|
| - const BalsaHeaders& headers() const { return headers_; }
|
| - const base::StringPiece body() const { return base::StringPiece(body_); }
|
| + const SpecialResponseType response_type() const { return response_type_; }
|
| + const SpdyHeaderBlock& headers() const { return headers_; }
|
| + const StringPiece body() const { return StringPiece(body_); }
|
|
|
| private:
|
| friend class QuicInMemoryCache;
|
| @@ -54,15 +52,15 @@ class QuicInMemoryCache {
|
| void set_response_type(SpecialResponseType response_type) {
|
| response_type_ = response_type;
|
| }
|
| - void set_headers(const BalsaHeaders& headers) {
|
| - headers_.CopyFrom(headers);
|
| + void set_headers(const SpdyHeaderBlock& headers) {
|
| + headers_ = headers;
|
| }
|
| void set_body(base::StringPiece body) {
|
| body.CopyToString(&body_);
|
| }
|
|
|
| SpecialResponseType response_type_;
|
| - BalsaHeaders headers_;
|
| + SpdyHeaderBlock headers_;
|
| std::string body_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(Response);
|
| @@ -87,7 +85,7 @@ class QuicInMemoryCache {
|
| // Add a response to the cache.
|
| void AddResponse(base::StringPiece host,
|
| base::StringPiece path,
|
| - const BalsaHeaders& response_headers,
|
| + const SpdyHeaderBlock& response_headers,
|
| base::StringPiece response_body);
|
|
|
| // Simulate a special behavior at a particular path.
|
| @@ -110,7 +108,7 @@ class QuicInMemoryCache {
|
| void AddResponseImpl(base::StringPiece host,
|
| base::StringPiece path,
|
| SpecialResponseType response_type,
|
| - const BalsaHeaders& response_headers,
|
| + const SpdyHeaderBlock& response_headers,
|
| base::StringPiece response_body);
|
|
|
| std::string GetKey(base::StringPiece host, base::StringPiece path) const;
|
|
|