| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 uint32 id() const { return id_; } | 64 uint32 id() const { return id_; } |
| 65 uint8 flags() const { return flags_; } | 65 uint8 flags() const { return flags_; } |
| 66 | 66 |
| 67 private: | 67 private: |
| 68 static void ConvertFlagsAndIdForSpdy2(uint32* val); | 68 static void ConvertFlagsAndIdForSpdy2(uint32* val); |
| 69 | 69 |
| 70 uint8 flags_; | 70 uint8 flags_; |
| 71 uint32 id_; | 71 uint32 id_; |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 // SpdySettingsMap has unique (flags, value) pair for given SpdySettingsIds ID. | 74 // SettingsMap has unique (flags, value) pair for given SpdySettingsIds ID. |
| 75 typedef std::pair<SpdySettingsFlags, uint32> SettingsFlagsAndValue; | 75 typedef std::pair<SpdySettingsFlags, uint32> SettingsFlagsAndValue; |
| 76 typedef std::map<SpdySettingsIds, SettingsFlagsAndValue> SettingsMap; | 76 typedef std::map<SpdySettingsIds, SettingsFlagsAndValue> SettingsMap; |
| 77 | 77 |
| 78 // A datastrcture for holding the contents of a CREDENTIAL frame. | 78 // A datastrcture for holding the contents of a CREDENTIAL frame. |
| 79 struct NET_EXPORT_PRIVATE SpdyCredential { | 79 struct NET_EXPORT_PRIVATE SpdyCredential { |
| 80 SpdyCredential(); | 80 SpdyCredential(); |
| 81 ~SpdyCredential(); | 81 ~SpdyCredential(); |
| 82 | 82 |
| 83 uint16 slot; | 83 uint16 slot; |
| 84 std::vector<std::string> certs; | 84 std::vector<std::string> certs; |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 // starts with HTTP. If it does, we likely have an HTTP response. This | 566 // starts with HTTP. If it does, we likely have an HTTP response. This |
| 567 // isn't guaranteed though: we could have gotten a settings frame and then | 567 // isn't guaranteed though: we could have gotten a settings frame and then |
| 568 // corrupt data that just looks like HTTP, but deterministic checking requires | 568 // corrupt data that just looks like HTTP, but deterministic checking requires |
| 569 // a lot more state. | 569 // a lot more state. |
| 570 bool probable_http_response_; | 570 bool probable_http_response_; |
| 571 }; | 571 }; |
| 572 | 572 |
| 573 } // namespace net | 573 } // namespace net |
| 574 | 574 |
| 575 #endif // NET_SPDY_SPDY_FRAMER_H_ | 575 #endif // NET_SPDY_SPDY_FRAMER_H_ |
| OLD | NEW |