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

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

Issue 2734933002: Release SpdySession socket read buffer (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | net/spdy/spdy_session.cc » ('j') | net/spdy/spdy_session.cc » ('J')
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 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after
1012 // |pool_| owns us, therefore its lifetime must exceed ours. 1012 // |pool_| owns us, therefore its lifetime must exceed ours.
1013 SpdySessionPool* pool_; 1013 SpdySessionPool* pool_;
1014 HttpServerProperties* http_server_properties_; 1014 HttpServerProperties* http_server_properties_;
1015 1015
1016 TransportSecurityState* transport_security_state_; 1016 TransportSecurityState* transport_security_state_;
1017 1017
1018 // The socket handle for this session. 1018 // The socket handle for this session.
1019 std::unique_ptr<ClientSocketHandle> connection_; 1019 std::unique_ptr<ClientSocketHandle> connection_;
1020 1020
1021 // The read buffer used to read data from the socket. 1021 // The read buffer used to read data from the socket.
1022 // Non-null if there is a Read() pending.
1022 scoped_refptr<IOBuffer> read_buffer_; 1023 scoped_refptr<IOBuffer> read_buffer_;
1023 1024
1024 SpdyStreamId stream_hi_water_mark_; // The next stream id to use. 1025 SpdyStreamId stream_hi_water_mark_; // The next stream id to use.
1025 1026
1026 // Used to ensure the server increments push stream ids correctly. 1027 // Used to ensure the server increments push stream ids correctly.
1027 SpdyStreamId last_accepted_push_stream_id_; 1028 SpdyStreamId last_accepted_push_stream_id_;
1028 1029
1029 // Queue, for each priority, of pending stream requests that have 1030 // Queue, for each priority, of pending stream requests that have
1030 // not yet been satisfied. 1031 // not yet been satisfied.
1031 PendingStreamRequestQueue pending_create_stream_queues_[NUM_PRIORITIES]; 1032 PendingStreamRequestQueue pending_create_stream_queues_[NUM_PRIORITIES];
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
1219 // Used for posting asynchronous IO tasks. We use this even though 1220 // Used for posting asynchronous IO tasks. We use this even though
1220 // SpdySession is refcounted because we don't need to keep the SpdySession 1221 // SpdySession is refcounted because we don't need to keep the SpdySession
1221 // alive if the last reference is within a RunnableMethod. Just revoke the 1222 // alive if the last reference is within a RunnableMethod. Just revoke the
1222 // method. 1223 // method.
1223 base::WeakPtrFactory<SpdySession> weak_factory_; 1224 base::WeakPtrFactory<SpdySession> weak_factory_;
1224 }; 1225 };
1225 1226
1226 } // namespace net 1227 } // namespace net
1227 1228
1228 #endif // NET_SPDY_SPDY_SESSION_H_ 1229 #endif // NET_SPDY_SPDY_SESSION_H_
OLDNEW
« no previous file with comments | « no previous file | net/spdy/spdy_session.cc » ('j') | net/spdy/spdy_session.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698