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

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

Issue 382313003: Add data reduction functionality to all platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync to head Created 6 years, 3 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
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 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 } else { 713 } else {
714 flow_control_state_ = FLOW_CONTROL_NONE; 714 flow_control_state_ = FLOW_CONTROL_NONE;
715 } 715 }
716 716
717 buffered_spdy_framer_.reset( 717 buffered_spdy_framer_.reset(
718 new BufferedSpdyFramer(NextProtoToSpdyMajorVersion(protocol_), 718 new BufferedSpdyFramer(NextProtoToSpdyMajorVersion(protocol_),
719 enable_compression_)); 719 enable_compression_));
720 buffered_spdy_framer_->set_visitor(this); 720 buffered_spdy_framer_->set_visitor(this);
721 buffered_spdy_framer_->set_debug_visitor(this); 721 buffered_spdy_framer_->set_debug_visitor(this);
722 UMA_HISTOGRAM_ENUMERATION("Net.SpdyVersion", protocol_, kProtoMaximumVersion); 722 UMA_HISTOGRAM_ENUMERATION("Net.SpdyVersion", protocol_, kProtoMaximumVersion);
723 #if defined(SPDY_PROXY_AUTH_ORIGIN)
724 UMA_HISTOGRAM_BOOLEAN("Net.SpdySessions_DataReductionProxy",
725 host_port_pair().Equals(HostPortPair::FromURL(
726 GURL(SPDY_PROXY_AUTH_ORIGIN))));
727 #endif
728 723
729 net_log_.AddEvent( 724 net_log_.AddEvent(
730 NetLog::TYPE_SPDY_SESSION_INITIALIZED, 725 NetLog::TYPE_SPDY_SESSION_INITIALIZED,
731 connection_->socket()->NetLog().source().ToEventParametersCallback()); 726 connection_->socket()->NetLog().source().ToEventParametersCallback());
732 727
733 DCHECK_EQ(availability_state_, STATE_AVAILABLE); 728 DCHECK_EQ(availability_state_, STATE_AVAILABLE);
734 connection_->AddHigherLayeredPool(this); 729 connection_->AddHigherLayeredPool(this);
735 if (enable_sending_initial_data_) 730 if (enable_sending_initial_data_)
736 SendInitialData(); 731 SendInitialData();
737 pool_ = pool; 732 pool_ = pool;
(...skipping 2493 matching lines...) Expand 10 before | Expand all | Expand 10 after
3231 if (!queue->empty()) { 3226 if (!queue->empty()) {
3232 SpdyStreamId stream_id = queue->front(); 3227 SpdyStreamId stream_id = queue->front();
3233 queue->pop_front(); 3228 queue->pop_front();
3234 return stream_id; 3229 return stream_id;
3235 } 3230 }
3236 } 3231 }
3237 return 0; 3232 return 0;
3238 } 3233 }
3239 3234
3240 } // namespace net 3235 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698