| 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_SPDY_SPDY_FRAMER_H_ | 5 #ifndef NET_SPDY_SPDY_FRAMER_H_ |
| 6 #define NET_SPDY_SPDY_FRAMER_H_ | 6 #define NET_SPDY_SPDY_FRAMER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <list> | 9 #include <list> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 // A datastructure for holding a set of ID/value pairs for a SETTINGS frame. | 51 // A datastructure for holding a set of ID/value pairs for a SETTINGS frame. |
| 52 typedef std::pair<spdy::SettingsFlagsAndId, uint32> SpdySetting; | 52 typedef std::pair<spdy::SettingsFlagsAndId, uint32> SpdySetting; |
| 53 typedef std::list<SpdySetting> SpdySettings; | 53 typedef std::list<SpdySetting> SpdySettings; |
| 54 | 54 |
| 55 // A datastrcture for holding the contents of a CREDENTIAL frame. | 55 // A datastrcture for holding the contents of a CREDENTIAL frame. |
| 56 struct NET_EXPORT_PRIVATE SpdyCredential { | 56 struct NET_EXPORT_PRIVATE SpdyCredential { |
| 57 SpdyCredential(); | 57 SpdyCredential(); |
| 58 ~SpdyCredential(); | 58 ~SpdyCredential(); |
| 59 | 59 |
| 60 uint16 slot; | 60 uint16 slot; |
| 61 std::string origin; | |
| 62 std::vector<std::string> certs; | 61 std::vector<std::string> certs; |
| 63 std::string proof; | 62 std::string proof; |
| 64 }; | 63 }; |
| 65 | 64 |
| 66 // SpdyFramerVisitorInterface is a set of callbacks for the SpdyFramer. | 65 // SpdyFramerVisitorInterface is a set of callbacks for the SpdyFramer. |
| 67 // Implement this interface to receive event callbacks as frames are | 66 // Implement this interface to receive event callbacks as frames are |
| 68 // decoded from the framer. | 67 // decoded from the framer. |
| 69 // | 68 // |
| 70 // Control frames that contain SPDY header blocks (SYN_STREAM, SYN_REPLY, and | 69 // Control frames that contain SPDY header blocks (SYN_STREAM, SYN_REPLY, and |
| 71 // HEADER) are processed in fashion that allows the decompressed header block | 70 // HEADER) are processed in fashion that allows the decompressed header block |
| (...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 | 530 |
| 532 std::string display_protocol_; | 531 std::string display_protocol_; |
| 533 | 532 |
| 534 static bool compression_default_; | 533 static bool compression_default_; |
| 535 static int spdy_version_; | 534 static int spdy_version_; |
| 536 }; | 535 }; |
| 537 | 536 |
| 538 } // namespace spdy | 537 } // namespace spdy |
| 539 | 538 |
| 540 #endif // NET_SPDY_SPDY_FRAMER_H_ | 539 #endif // NET_SPDY_SPDY_FRAMER_H_ |
| OLD | NEW |