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

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

Issue 304353012: Introduce STATE_RESERVED_REMOTE. No behavioral changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android build. More robust expectation Created 6 years, 6 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
« no previous file with comments | « net/spdy/spdy_network_transaction_unittest.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 <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 MapRstStreamStatusToProtocolError(SpdyRstStreamStatus status); 124 MapRstStreamStatusToProtocolError(SpdyRstStreamStatus status);
125 SpdyGoAwayStatus NET_EXPORT_PRIVATE MapNetErrorToGoAwayStatus(Error err); 125 SpdyGoAwayStatus NET_EXPORT_PRIVATE MapNetErrorToGoAwayStatus(Error err);
126 126
127 // If these compile asserts fail then SpdyProtocolErrorDetails needs 127 // If these compile asserts fail then SpdyProtocolErrorDetails needs
128 // to be updated with new values, as do the mapping functions above. 128 // to be updated with new values, as do the mapping functions above.
129 COMPILE_ASSERT(12 == SpdyFramer::LAST_ERROR, 129 COMPILE_ASSERT(12 == SpdyFramer::LAST_ERROR,
130 SpdyProtocolErrorDetails_SpdyErrors_mismatch); 130 SpdyProtocolErrorDetails_SpdyErrors_mismatch);
131 COMPILE_ASSERT(15 == RST_STREAM_NUM_STATUS_CODES, 131 COMPILE_ASSERT(15 == RST_STREAM_NUM_STATUS_CODES,
132 SpdyProtocolErrorDetails_RstStreamStatus_mismatch); 132 SpdyProtocolErrorDetails_RstStreamStatus_mismatch);
133 133
134 // Splits pushed |headers| into request and response parts. Request headers are
135 // the headers specifying resource URL.
136 void NET_EXPORT_PRIVATE
137 SplitPushedHeadersToRequestAndResponse(const SpdyHeaderBlock& headers,
138 SpdyMajorVersion protocol_version,
139 SpdyHeaderBlock* request_headers,
140 SpdyHeaderBlock* response_headers);
141
134 // A helper class used to manage a request to create a stream. 142 // A helper class used to manage a request to create a stream.
135 class NET_EXPORT_PRIVATE SpdyStreamRequest { 143 class NET_EXPORT_PRIVATE SpdyStreamRequest {
136 public: 144 public:
137 SpdyStreamRequest(); 145 SpdyStreamRequest();
138 // Calls CancelRequest(). 146 // Calls CancelRequest().
139 ~SpdyStreamRequest(); 147 ~SpdyStreamRequest();
140 148
141 // Starts the request to create a stream. If OK is returned, then 149 // Starts the request to create a stream. If OK is returned, then
142 // ReleaseStream() may be called. If ERR_IO_PENDING is returned, 150 // ReleaseStream() may be called. If ERR_IO_PENDING is returned,
143 // then when the stream is created, |callback| will be called, at 151 // then when the stream is created, |callback| will be called, at
(...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after
1119 // Used for posting asynchronous IO tasks. We use this even though 1127 // Used for posting asynchronous IO tasks. We use this even though
1120 // SpdySession is refcounted because we don't need to keep the SpdySession 1128 // SpdySession is refcounted because we don't need to keep the SpdySession
1121 // alive if the last reference is within a RunnableMethod. Just revoke the 1129 // alive if the last reference is within a RunnableMethod. Just revoke the
1122 // method. 1130 // method.
1123 base::WeakPtrFactory<SpdySession> weak_factory_; 1131 base::WeakPtrFactory<SpdySession> weak_factory_;
1124 }; 1132 };
1125 1133
1126 } // namespace net 1134 } // namespace net
1127 1135
1128 #endif // NET_SPDY_SPDY_SESSION_H_ 1136 #endif // NET_SPDY_SPDY_SESSION_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_network_transaction_unittest.cc ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698