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

Side by Side Diff: net/quic/quic_spdy_session.cc

Issue 2101863004: net: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/proxy/proxy_resolver_v8_tracing.cc ('k') | net/quic/quic_stream_sequencer_buffer_test.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) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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/quic/quic_spdy_session.h" 5 #include "net/quic/quic_spdy_session.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "net/quic/quic_bug_tracker.h" 9 #include "net/quic/quic_bug_tracker.h"
10 #include "net/quic/quic_headers_stream.h" 10 #include "net/quic/quic_headers_stream.h"
11 11
12 using base::StringPiece; 12 using base::StringPiece;
13 using std::string; 13 using std::string;
14 14
15 namespace net { 15 namespace net {
16 16
17 QuicSpdySession::QuicSpdySession(QuicConnection* connection, 17 QuicSpdySession::QuicSpdySession(QuicConnection* connection,
18 const QuicConfig& config) 18 const QuicConfig& config)
19 : QuicSession(connection, config) {} 19 : QuicSession(connection, config) {}
20 20
21 QuicSpdySession::~QuicSpdySession() { 21 QuicSpdySession::~QuicSpdySession() {
22 // Set the streams' session pointers in closed and dynamic stream lists 22 // Set the streams' session pointers in closed and dynamic stream lists
23 // to null to avoid subsequent use of this session. 23 // to null to avoid subsequent use of this session.
24 for (auto const& stream : *closed_streams()) { 24 for (auto* stream : *closed_streams()) {
25 static_cast<QuicSpdyStream*>(stream)->ClearSession(); 25 static_cast<QuicSpdyStream*>(stream)->ClearSession();
26 } 26 }
27 for (auto const& kv : dynamic_streams()) { 27 for (auto const& kv : dynamic_streams()) {
28 static_cast<QuicSpdyStream*>(kv.second)->ClearSession(); 28 static_cast<QuicSpdyStream*>(kv.second)->ClearSession();
29 } 29 }
30 } 30 }
31 31
32 void QuicSpdySession::Initialize() { 32 void QuicSpdySession::Initialize() {
33 QuicSession::Initialize(); 33 QuicSession::Initialize();
34 34
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 149
150 void QuicSpdySession::OnConfigNegotiated() { 150 void QuicSpdySession::OnConfigNegotiated() {
151 QuicSession::OnConfigNegotiated(); 151 QuicSession::OnConfigNegotiated();
152 if (FLAGS_quic_disable_hpack_dynamic_table && 152 if (FLAGS_quic_disable_hpack_dynamic_table &&
153 config()->HasClientSentConnectionOption(kDHDT, perspective())) { 153 config()->HasClientSentConnectionOption(kDHDT, perspective())) {
154 headers_stream_->DisableHpackDynamicTable(); 154 headers_stream_->DisableHpackDynamicTable();
155 } 155 }
156 } 156 }
157 157
158 } // namespace net 158 } // namespace net
OLDNEW
« no previous file with comments | « net/proxy/proxy_resolver_v8_tracing.cc ('k') | net/quic/quic_stream_sequencer_buffer_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698