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

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

Issue 2847133003: Add NetLog event for invalid Http/2 response header (Closed)
Patch Set: address comments Created 3 years, 7 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/chromium/spdy_session.h ('k') | net/spdy/chromium/spdy_session_unittest.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 #include "net/spdy/chromium/spdy_session.h" 5 #include "net/spdy/chromium/spdy_session.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <utility> 10 #include <utility>
(...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after
884 // TODO(akalin): Check connection->is_initialized() instead. This 884 // TODO(akalin): Check connection->is_initialized() instead. This
885 // requires re-working CreateFakeSpdySession(), though. 885 // requires re-working CreateFakeSpdySession(), though.
886 DCHECK(connection->socket()); 886 DCHECK(connection->socket());
887 887
888 connection_ = std::move(connection); 888 connection_ = std::move(connection);
889 is_secure_ = is_secure; 889 is_secure_ = is_secure;
890 890
891 session_send_window_size_ = kDefaultInitialWindowSize; 891 session_send_window_size_ = kDefaultInitialWindowSize;
892 session_recv_window_size_ = kDefaultInitialWindowSize; 892 session_recv_window_size_ = kDefaultInitialWindowSize;
893 893
894 buffered_spdy_framer_.reset(new BufferedSpdyFramer()); 894 buffered_spdy_framer_.reset(new BufferedSpdyFramer(net_log_));
895 buffered_spdy_framer_->set_visitor(this); 895 buffered_spdy_framer_->set_visitor(this);
896 buffered_spdy_framer_->set_debug_visitor(this); 896 buffered_spdy_framer_->set_debug_visitor(this);
897 buffered_spdy_framer_->UpdateHeaderDecoderTableSize(max_header_table_size_); 897 buffered_spdy_framer_->UpdateHeaderDecoderTableSize(max_header_table_size_);
898 898
899 net_log_.AddEvent(NetLogEventType::HTTP2_SESSION_INITIALIZED, 899 net_log_.AddEvent(NetLogEventType::HTTP2_SESSION_INITIALIZED,
900 base::Bind(&NetLogSpdyInitializedCallback, 900 base::Bind(&NetLogSpdyInitializedCallback,
901 connection_->socket()->NetLog().source())); 901 connection_->socket()->NetLog().source()));
902 902
903 DCHECK_EQ(availability_state_, STATE_AVAILABLE); 903 DCHECK_EQ(availability_state_, STATE_AVAILABLE);
904 connection_->AddHigherLayeredPool(this); 904 connection_->AddHigherLayeredPool(this);
(...skipping 2291 matching lines...) Expand 10 before | Expand all | Expand 10 after
3196 if (!queue->empty()) { 3196 if (!queue->empty()) {
3197 SpdyStreamId stream_id = queue->front(); 3197 SpdyStreamId stream_id = queue->front();
3198 queue->pop_front(); 3198 queue->pop_front();
3199 return stream_id; 3199 return stream_id;
3200 } 3200 }
3201 } 3201 }
3202 return 0; 3202 return 0;
3203 } 3203 }
3204 3204
3205 } // namespace net 3205 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/chromium/spdy_session.h ('k') | net/spdy/chromium/spdy_session_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698