| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_QUIC_CORE_SPDY_UTILS_H_ | 5 #ifndef NET_QUIC_CORE_SPDY_UTILS_H_ |
| 6 #define NET_QUIC_CORE_SPDY_UTILS_H_ | 6 #define NET_QUIC_CORE_SPDY_UTILS_H_ |
| 7 | 7 |
| 8 #include <cstddef> | 8 #include <cstddef> |
| 9 #include <cstdint> | 9 #include <cstdint> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "net/quic/core/quic_header_list.h" | 13 #include "net/quic/core/quic_header_list.h" |
| 14 #include "net/quic/core/quic_packets.h" | 14 #include "net/quic/core/quic_packets.h" |
| 15 #include "net/quic/platform/api/quic_export.h" | 15 #include "net/quic/platform/api/quic_export.h" |
| 16 #include "net/spdy/spdy_framer.h" | 16 #include "net/spdy/core/spdy_framer.h" |
| 17 | 17 |
| 18 namespace net { | 18 namespace net { |
| 19 | 19 |
| 20 class QUIC_EXPORT_PRIVATE SpdyUtils { | 20 class QUIC_EXPORT_PRIVATE SpdyUtils { |
| 21 public: | 21 public: |
| 22 static std::string SerializeUncompressedHeaders( | 22 static std::string SerializeUncompressedHeaders( |
| 23 const SpdyHeaderBlock& headers); | 23 const SpdyHeaderBlock& headers); |
| 24 | 24 |
| 25 // Parses |data| as a string containing serialized HTTP/2 HEADERS frame, | 25 // Parses |data| as a string containing serialized HTTP/2 HEADERS frame, |
| 26 // populating |headers| with the key->value pairs found. | 26 // populating |headers| with the key->value pairs found. |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 static bool PopulateHeaderBlockFromUrl(const std::string url, | 76 static bool PopulateHeaderBlockFromUrl(const std::string url, |
| 77 SpdyHeaderBlock* headers); | 77 SpdyHeaderBlock* headers); |
| 78 | 78 |
| 79 private: | 79 private: |
| 80 DISALLOW_COPY_AND_ASSIGN(SpdyUtils); | 80 DISALLOW_COPY_AND_ASSIGN(SpdyUtils); |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 } // namespace net | 83 } // namespace net |
| 84 | 84 |
| 85 #endif // NET_QUIC_CORE_SPDY_UTILS_H_ | 85 #endif // NET_QUIC_CORE_SPDY_UTILS_H_ |
| OLD | NEW |