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

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

Issue 12459022: [SPDY] Add session flow control data to SPDY info in net-internals (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
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 #include "net/spdy/spdy_session.h" 5 #include "net/spdy/spdy_session.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 1201 matching lines...) Expand 10 before | Expand all | Expand 10 after
1212 dict->SetInteger("streams_initiated_count", streams_initiated_count_); 1212 dict->SetInteger("streams_initiated_count", streams_initiated_count_);
1213 dict->SetInteger("streams_pushed_count", streams_pushed_count_); 1213 dict->SetInteger("streams_pushed_count", streams_pushed_count_);
1214 dict->SetInteger("streams_pushed_and_claimed_count", 1214 dict->SetInteger("streams_pushed_and_claimed_count",
1215 streams_pushed_and_claimed_count_); 1215 streams_pushed_and_claimed_count_);
1216 dict->SetInteger("streams_abandoned_count", streams_abandoned_count_); 1216 dict->SetInteger("streams_abandoned_count", streams_abandoned_count_);
1217 DCHECK(buffered_spdy_framer_.get()); 1217 DCHECK(buffered_spdy_framer_.get());
1218 dict->SetInteger("frames_received", buffered_spdy_framer_->frames_received()); 1218 dict->SetInteger("frames_received", buffered_spdy_framer_->frames_received());
1219 1219
1220 dict->SetBoolean("sent_settings", sent_settings_); 1220 dict->SetBoolean("sent_settings", sent_settings_);
1221 dict->SetBoolean("received_settings", received_settings_); 1221 dict->SetBoolean("received_settings", received_settings_);
1222
1223 dict->SetInteger("send_window_size", session_send_window_size_);
1224 dict->SetInteger("recv_window_size", session_recv_window_size_);
1225 dict->SetInteger("unacked_recv_window_bytes",
1226 session_unacked_recv_window_bytes_);
1222 return dict; 1227 return dict;
1223 } 1228 }
1224 1229
1225 bool SpdySession::IsReused() const { 1230 bool SpdySession::IsReused() const {
1226 return buffered_spdy_framer_->frames_received() > 0; 1231 return buffered_spdy_framer_->frames_received() > 0;
1227 } 1232 }
1228 1233
1229 bool SpdySession::GetLoadTimingInfo(SpdyStreamId stream_id, 1234 bool SpdySession::GetLoadTimingInfo(SpdyStreamId stream_id,
1230 LoadTimingInfo* load_timing_info) const { 1235 LoadTimingInfo* load_timing_info) const {
1231 return connection_->GetLoadTimingInfo(stream_id != kFirstStreamId, 1236 return connection_->GetLoadTimingInfo(stream_id != kFirstStreamId,
(...skipping 1066 matching lines...) Expand 10 before | Expand all | Expand 10 after
2298 } 2303 }
2299 2304
2300 session_recv_window_size_ -= delta_window_size; 2305 session_recv_window_size_ -= delta_window_size;
2301 net_log_.AddEvent( 2306 net_log_.AddEvent(
2302 NetLog::TYPE_SPDY_SESSION_UPDATE_RECV_WINDOW, 2307 NetLog::TYPE_SPDY_SESSION_UPDATE_RECV_WINDOW,
2303 base::Bind(&NetLogSpdySessionWindowUpdateCallback, 2308 base::Bind(&NetLogSpdySessionWindowUpdateCallback,
2304 -delta_window_size, session_recv_window_size_)); 2309 -delta_window_size, session_recv_window_size_));
2305 } 2310 }
2306 2311
2307 } // namespace net 2312 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698