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

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

Issue 10254021: Merge SettingsMap changes from server code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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
« no previous file with comments | « no previous file | net/spdy/spdy_framer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « no previous file | net/spdy/spdy_framer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698