| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_TOOLS_QUIC_SPDY_UTILS_H_ | 5 #ifndef NET_TOOLS_QUIC_SPDY_UTILS_H_ |
| 6 #define NET_TOOLS_QUIC_SPDY_UTILS_H_ | 6 #define NET_TOOLS_QUIC_SPDY_UTILS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "net/spdy/spdy_framer.h" | 10 #include "net/spdy/spdy_framer.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 static SpdyHeaderBlock RequestHeadersToSpdy4Headers( | 35 static SpdyHeaderBlock RequestHeadersToSpdy4Headers( |
| 36 const BalsaHeaders& request_headers); | 36 const BalsaHeaders& request_headers); |
| 37 | 37 |
| 38 static SpdyHeaderBlock ResponseHeadersToSpdyHeaders( | 38 static SpdyHeaderBlock ResponseHeadersToSpdyHeaders( |
| 39 const BalsaHeaders& response_headers); | 39 const BalsaHeaders& response_headers); |
| 40 | 40 |
| 41 static std::string SerializeUncompressedHeaders( | 41 static std::string SerializeUncompressedHeaders( |
| 42 const SpdyHeaderBlock& headers); | 42 const SpdyHeaderBlock& headers); |
| 43 | 43 |
| 44 static void SpdyHeadersToResponseHeaders(const SpdyHeaderBlock& block, |
| 45 BalsaHeaders* headers); |
| 46 |
| 44 private: | 47 private: |
| 45 DISALLOW_COPY_AND_ASSIGN(SpdyUtils); | 48 DISALLOW_COPY_AND_ASSIGN(SpdyUtils); |
| 46 }; | 49 }; |
| 47 | 50 |
| 48 } // namespace tools | 51 } // namespace tools |
| 49 } // namespace net | 52 } // namespace net |
| 50 | 53 |
| 51 #endif // NET_TOOLS_QUIC_SPDY_UTILS_H_ | 54 #endif // NET_TOOLS_QUIC_SPDY_UTILS_H_ |
| OLD | NEW |