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

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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 private: 69 private:
70 static void ConvertFlagsAndIdForSpdy2(uint32* val); 70 static void ConvertFlagsAndIdForSpdy2(uint32* val);
71 71
72 uint8 flags_; 72 uint8 flags_;
73 uint32 id_; 73 uint32 id_;
74 }; 74 };
75 75
76 // A datastructure for holding a set of ID/value pairs for a SETTINGS frame. 76 // A datastructure for holding a set of ID/value pairs for a SETTINGS frame.
77 typedef std::pair<SettingsFlagsAndId, uint32> SpdySetting; 77 typedef std::pair<SettingsFlagsAndId, uint32> SpdySetting;
78 typedef std::list<SpdySetting> SpdySettings; 78 typedef std::list<SpdySetting> SpdySettings;
Ryan Hamilton 2012/03/21 16:24:41 Does this type still need to exist? If so, what i
ramant (doing other things) 2012/03/23 04:11:25 Would like to submit a separate CL to server/chrom
Ryan Hamilton 2012/03/23 15:25:38 *nod*
79 // SpdySettingsMap has unique (flags, value) pair for give SpdySetting ID.
80 typedef std::pair<uint8, uint32> SettingsFlagsAndValue;
81 typedef std::map<uint32, SettingsFlagsAndValue> SettingsMap;
79 82
80 // A datastrcture for holding the contents of a CREDENTIAL frame. 83 // A datastrcture for holding the contents of a CREDENTIAL frame.
81 struct NET_EXPORT_PRIVATE SpdyCredential { 84 struct NET_EXPORT_PRIVATE SpdyCredential {
82 SpdyCredential(); 85 SpdyCredential();
83 ~SpdyCredential(); 86 ~SpdyCredential();
84 87
85 uint16 slot; 88 uint16 slot;
86 std::vector<std::string> certs; 89 std::vector<std::string> certs;
87 std::string proof; 90 std::string proof;
88 }; 91 };
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 static bool compression_default_; 599 static bool compression_default_;
597 }; 600 };
598 601
599 } // namespace spdy 602 } // namespace spdy
600 603
601 #endif // NET_SPDY_SPDY_FRAMER_H_ 604 #endif // NET_SPDY_SPDY_FRAMER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698