Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(417)

Side by Side Diff: net/spdy/spdy_framer.h

Issue 9802003: SPDY - persist SPDY settings. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // A datastructure for holding a set of ID/value pairs for a SETTINGS frame. 74 // A datastructure for holding a set of ID/value pairs for a SETTINGS frame.
75 typedef std::pair<SettingsFlagsAndId, uint32> SpdySetting; 75 typedef std::pair<SettingsFlagsAndId, uint32> SpdySetting;
76 typedef std::list<SpdySetting> SpdySettings; 76 typedef std::list<SpdySetting> SpdySettings;
77 // SpdySettingsMap has unique (flags, value) pair for give SpdySetting ID.
78 typedef std::pair<SpdySettingsFlags, uint32> SettingsFlagsAndValue;
79 typedef std::map<SpdySettingsIds, SettingsFlagsAndValue> SettingsMap;
77 80
78 // A datastrcture for holding the contents of a CREDENTIAL frame. 81 // A datastrcture for holding the contents of a CREDENTIAL frame.
79 struct NET_EXPORT_PRIVATE SpdyCredential { 82 struct NET_EXPORT_PRIVATE SpdyCredential {
80 SpdyCredential(); 83 SpdyCredential();
81 ~SpdyCredential(); 84 ~SpdyCredential();
82 85
83 uint16 slot; 86 uint16 slot;
84 std::vector<std::string> certs; 87 std::vector<std::string> certs;
85 std::string proof; 88 std::string proof;
86 }; 89 };
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 // starts with HTTP. If it does, we likely have an HTTP response. This 593 // starts with HTTP. If it does, we likely have an HTTP response. This
591 // isn't guaranteed though: we could have gotten a settings frame and then 594 // isn't guaranteed though: we could have gotten a settings frame and then
592 // corrupt data that just looks like HTTP, but deterministic checking requires 595 // corrupt data that just looks like HTTP, but deterministic checking requires
593 // a lot more state. 596 // a lot more state.
594 bool probable_http_response_; 597 bool probable_http_response_;
595 }; 598 };
596 599
597 } // namespace net 600 } // namespace net
598 601
599 #endif // NET_SPDY_SPDY_FRAMER_H_ 602 #endif // NET_SPDY_SPDY_FRAMER_H_
OLDNEW
« no previous file with comments | « net/http/http_server_properties_impl_unittest.cc ('k') | net/spdy/spdy_network_transaction_spdy21_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698