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

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

Issue 786123002: Update from https://crrev.com/307330 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « net/spdy/spdy_framer_test.cc ('k') | net/spdy/spdy_session.h » ('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 // This file contains some protocol structures for use with SPDY 2 and 3 5 // This file contains some protocol structures for use with SPDY 2 and 3
6 // The SPDY 2 spec can be found at: 6 // The SPDY 2 spec can be found at:
7 // http://dev.chromium.org/spdy/spdy-protocol/spdy-protocol-draft2 7 // http://dev.chromium.org/spdy/spdy-protocol/spdy-protocol-draft2
8 // The SPDY 3 spec can be found at: 8 // The SPDY 3 spec can be found at:
9 // http://dev.chromium.org/spdy/spdy-protocol/spdy-protocol-draft3 9 // http://dev.chromium.org/spdy/spdy-protocol/spdy-protocol-draft3
10 10
11 #ifndef NET_SPDY_SPDY_PROTOCOL_H_ 11 #ifndef NET_SPDY_SPDY_PROTOCOL_H_
12 #define NET_SPDY_SPDY_PROTOCOL_H_ 12 #define NET_SPDY_SPDY_PROTOCOL_H_
13 13
14 #include <limits>
14 #include <map> 15 #include <map>
15 #include <string> 16 #include <string>
16 #include <vector> 17 #include <vector>
17 18
18 #include "base/basictypes.h" 19 #include "base/basictypes.h"
19 #include "base/compiler_specific.h" 20 #include "base/compiler_specific.h"
20 #include "base/logging.h" 21 #include "base/logging.h"
21 #include "base/memory/scoped_ptr.h" 22 #include "base/memory/scoped_ptr.h"
22 #include "base/strings/string_piece.h" 23 #include "base/strings/string_piece.h"
23 #include "base/sys_byteorder.h" 24 #include "base/sys_byteorder.h"
(...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after
976 return protocol_id_; 977 return protocol_id_;
977 } 978 }
978 std::string host() const { return host_; } 979 std::string host() const { return host_; }
979 std::string origin() const { return origin_; } 980 std::string origin() const { return origin_; }
980 981
981 void set_max_age(uint32 max_age) { max_age_ = max_age; } 982 void set_max_age(uint32 max_age) { max_age_ = max_age; }
982 void set_port(uint16 port) { port_ = port; } 983 void set_port(uint16 port) { port_ = port; }
983 void set_protocol_id(SpdyProtocolId protocol_id) { 984 void set_protocol_id(SpdyProtocolId protocol_id) {
984 protocol_id_ = protocol_id; 985 protocol_id_ = protocol_id;
985 } 986 }
986 void set_host(std::string host) { 987 void set_host(std::string host) { host_ = host; }
987 host_ = host; 988 void set_origin(std::string origin) { origin_ = origin; }
988 }
989 void set_origin(std::string origin) {
990 origin_ = origin;
991 }
992 989
993 void Visit(SpdyFrameVisitor* visitor) const override; 990 void Visit(SpdyFrameVisitor* visitor) const override;
994 991
995 private: 992 private:
996 uint32 max_age_; 993 uint32 max_age_;
997 uint16 port_; 994 uint16 port_;
998 SpdyProtocolId protocol_id_; 995 SpdyProtocolId protocol_id_;
999 std::string host_; 996 std::string host_;
1000 std::string origin_; 997 std::string origin_;
1001 DISALLOW_COPY_AND_ASSIGN(SpdyAltSvcIR); 998 DISALLOW_COPY_AND_ASSIGN(SpdyAltSvcIR);
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
1092 SpdyFrameVisitor() {} 1089 SpdyFrameVisitor() {}
1093 virtual ~SpdyFrameVisitor() {} 1090 virtual ~SpdyFrameVisitor() {}
1094 1091
1095 private: 1092 private:
1096 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor); 1093 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor);
1097 }; 1094 };
1098 1095
1099 } // namespace net 1096 } // namespace net
1100 1097
1101 #endif // NET_SPDY_SPDY_PROTOCOL_H_ 1098 #endif // NET_SPDY_SPDY_PROTOCOL_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_framer_test.cc ('k') | net/spdy/spdy_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698