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

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

Issue 2445113002: Add HTTP/2 error code NO_ERROR. (Closed)
Patch Set: Rebase. Created 4 years, 1 month 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_protocol.cc ('k') | net/spdy/spdy_session.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_SESSION_H_ 5 #ifndef NET_SPDY_SPDY_SESSION_H_
6 #define NET_SPDY_SPDY_SESSION_H_ 6 #define NET_SPDY_SPDY_SESSION_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 SPDY_ERROR_GOAWAY_FRAME_CORRUPT = 29, 106 SPDY_ERROR_GOAWAY_FRAME_CORRUPT = 29,
107 SPDY_ERROR_RST_STREAM_FRAME_CORRUPT = 30, 107 SPDY_ERROR_RST_STREAM_FRAME_CORRUPT = 30,
108 SPDY_ERROR_INVALID_PADDING = 39, 108 SPDY_ERROR_INVALID_PADDING = 39,
109 SPDY_ERROR_INVALID_DATA_FRAME_FLAGS = 8, 109 SPDY_ERROR_INVALID_DATA_FRAME_FLAGS = 8,
110 SPDY_ERROR_INVALID_CONTROL_FRAME_FLAGS = 9, 110 SPDY_ERROR_INVALID_CONTROL_FRAME_FLAGS = 9,
111 SPDY_ERROR_UNEXPECTED_FRAME = 31, 111 SPDY_ERROR_UNEXPECTED_FRAME = 31,
112 SPDY_ERROR_INTERNAL_FRAMER_ERROR = 41, 112 SPDY_ERROR_INTERNAL_FRAMER_ERROR = 41,
113 SPDY_ERROR_INVALID_CONTROL_FRAME_SIZE = 37, 113 SPDY_ERROR_INVALID_CONTROL_FRAME_SIZE = 37,
114 SPDY_ERROR_OVERSIZED_PAYLOAD = 40, 114 SPDY_ERROR_OVERSIZED_PAYLOAD = 40,
115 // SpdyRstStreamStatus mappings. 115 // SpdyRstStreamStatus mappings.
116 // RST_STREAM_INVALID not mapped. 116 STATUS_CODE_NO_ERROR = 41,
117 STATUS_CODE_PROTOCOL_ERROR = 11, 117 STATUS_CODE_PROTOCOL_ERROR = 11,
118 STATUS_CODE_INVALID_STREAM = 12, 118 STATUS_CODE_INVALID_STREAM = 12,
119 STATUS_CODE_REFUSED_STREAM = 13, 119 STATUS_CODE_REFUSED_STREAM = 13,
120 STATUS_CODE_UNSUPPORTED_VERSION = 14, 120 STATUS_CODE_UNSUPPORTED_VERSION = 14,
121 STATUS_CODE_CANCEL = 15, 121 STATUS_CODE_CANCEL = 15,
122 STATUS_CODE_INTERNAL_ERROR = 16, 122 STATUS_CODE_INTERNAL_ERROR = 16,
123 STATUS_CODE_FLOW_CONTROL_ERROR = 17, 123 STATUS_CODE_FLOW_CONTROL_ERROR = 17,
124 STATUS_CODE_STREAM_IN_USE = 18, 124 STATUS_CODE_STREAM_IN_USE = 18,
125 STATUS_CODE_STREAM_ALREADY_CLOSED = 19, 125 STATUS_CODE_STREAM_ALREADY_CLOSED = 19,
126 STATUS_CODE_FRAME_SIZE_ERROR = 21, 126 STATUS_CODE_FRAME_SIZE_ERROR = 21,
127 STATUS_CODE_SETTINGS_TIMEOUT = 32, 127 STATUS_CODE_SETTINGS_TIMEOUT = 32,
128 STATUS_CODE_CONNECT_ERROR = 33, 128 STATUS_CODE_CONNECT_ERROR = 33,
129 STATUS_CODE_ENHANCE_YOUR_CALM = 34, 129 STATUS_CODE_ENHANCE_YOUR_CALM = 34,
130 STATUS_CODE_INADEQUATE_SECURITY = 35, 130 STATUS_CODE_INADEQUATE_SECURITY = 35,
131 STATUS_CODE_HTTP_1_1_REQUIRED = 36, 131 STATUS_CODE_HTTP_1_1_REQUIRED = 36,
132 132
133 // SpdySession errors 133 // SpdySession errors
134 PROTOCOL_ERROR_UNEXPECTED_PING = 22, 134 PROTOCOL_ERROR_UNEXPECTED_PING = 22,
135 PROTOCOL_ERROR_RST_STREAM_FOR_NON_ACTIVE_STREAM = 23, 135 PROTOCOL_ERROR_RST_STREAM_FOR_NON_ACTIVE_STREAM = 23,
136 PROTOCOL_ERROR_SPDY_COMPRESSION_FAILURE = 24, 136 PROTOCOL_ERROR_SPDY_COMPRESSION_FAILURE = 24,
137 PROTOCOL_ERROR_REQUEST_FOR_SECURE_CONTENT_OVER_INSECURE_SESSION = 25, 137 PROTOCOL_ERROR_REQUEST_FOR_SECURE_CONTENT_OVER_INSECURE_SESSION = 25,
138 PROTOCOL_ERROR_SYN_REPLY_NOT_RECEIVED = 26, 138 PROTOCOL_ERROR_SYN_REPLY_NOT_RECEIVED = 26,
139 PROTOCOL_ERROR_INVALID_WINDOW_UPDATE_SIZE = 27, 139 PROTOCOL_ERROR_INVALID_WINDOW_UPDATE_SIZE = 27,
140 PROTOCOL_ERROR_RECEIVE_WINDOW_VIOLATION = 28, 140 PROTOCOL_ERROR_RECEIVE_WINDOW_VIOLATION = 28,
141 141
142 // Next free value. 142 // Next free value.
143 NUM_SPDY_PROTOCOL_ERROR_DETAILS = 41, 143 NUM_SPDY_PROTOCOL_ERROR_DETAILS = 42,
144 }; 144 };
145 SpdyProtocolErrorDetails NET_EXPORT_PRIVATE 145 SpdyProtocolErrorDetails NET_EXPORT_PRIVATE
146 MapFramerErrorToProtocolError(SpdyFramer::SpdyError error); 146 MapFramerErrorToProtocolError(SpdyFramer::SpdyError error);
147 Error NET_EXPORT_PRIVATE MapFramerErrorToNetError(SpdyFramer::SpdyError error); 147 Error NET_EXPORT_PRIVATE MapFramerErrorToNetError(SpdyFramer::SpdyError error);
148 SpdyProtocolErrorDetails NET_EXPORT_PRIVATE 148 SpdyProtocolErrorDetails NET_EXPORT_PRIVATE
149 MapRstStreamStatusToProtocolError(SpdyRstStreamStatus status); 149 MapRstStreamStatusToProtocolError(SpdyRstStreamStatus status);
150 SpdyGoAwayStatus NET_EXPORT_PRIVATE MapNetErrorToGoAwayStatus(Error err); 150 SpdyGoAwayStatus NET_EXPORT_PRIVATE MapNetErrorToGoAwayStatus(Error err);
151 151
152 // If these compile asserts fail then SpdyProtocolErrorDetails needs 152 // If these compile asserts fail then SpdyProtocolErrorDetails needs
153 // to be updated with new values, as do the mapping functions above. 153 // to be updated with new values, as do the mapping functions above.
(...skipping 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after
1207 // Used for posting asynchronous IO tasks. We use this even though 1207 // Used for posting asynchronous IO tasks. We use this even though
1208 // SpdySession is refcounted because we don't need to keep the SpdySession 1208 // SpdySession is refcounted because we don't need to keep the SpdySession
1209 // alive if the last reference is within a RunnableMethod. Just revoke the 1209 // alive if the last reference is within a RunnableMethod. Just revoke the
1210 // method. 1210 // method.
1211 base::WeakPtrFactory<SpdySession> weak_factory_; 1211 base::WeakPtrFactory<SpdySession> weak_factory_;
1212 }; 1212 };
1213 1213
1214 } // namespace net 1214 } // namespace net
1215 1215
1216 #endif // NET_SPDY_SPDY_SESSION_H_ 1216 #endif // NET_SPDY_SPDY_SESSION_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_protocol.cc ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698