OLD | NEW |
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/quic/quic_session.h" | 5 #include "net/quic/quic_session.h" |
6 | 6 |
7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
8 #include "net/quic/crypto/proof_verifier.h" | 8 #include "net/quic/crypto/proof_verifier.h" |
9 #include "net/quic/quic_connection.h" | 9 #include "net/quic/quic_connection.h" |
10 | 10 |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 LOG(ERROR) << ENDPOINT << "Got unknown handshake event: " << event; | 257 LOG(ERROR) << ENDPOINT << "Got unknown handshake event: " << event; |
258 } | 258 } |
259 } | 259 } |
260 | 260 |
261 // TODO(rtenneti): Don't port proof_verifier code back to google3 until we have | 261 // TODO(rtenneti): Don't port proof_verifier code back to google3 until we have |
262 // a way to have single ProofVerifier that can handle multiple requests. | 262 // a way to have single ProofVerifier that can handle multiple requests. |
263 ProofVerifier* QuicSession::proof_verifier() const { | 263 ProofVerifier* QuicSession::proof_verifier() const { |
264 return proof_verifier_.get(); | 264 return proof_verifier_.get(); |
265 } | 265 } |
266 | 266 |
267 void QuicSession::SetProofVerifier(ProofVerifier* verifier) { | 267 void QuicSession::set_proof_verifier(ProofVerifier* verifier) { |
268 proof_verifier_.reset(verifier); | 268 proof_verifier_.reset(verifier); |
269 } | 269 } |
270 | 270 |
271 QuicConfig* QuicSession::config() { | 271 QuicConfig* QuicSession::config() { |
272 return &config_; | 272 return &config_; |
273 } | 273 } |
274 | 274 |
275 void QuicSession::ActivateStream(ReliableQuicStream* stream) { | 275 void QuicSession::ActivateStream(ReliableQuicStream* stream) { |
276 DLOG(INFO) << ENDPOINT << "num_streams: " << stream_map_.size() | 276 DLOG(INFO) << ENDPOINT << "num_streams: " << stream_map_.size() |
277 << ". activating " << stream->id(); | 277 << ". activating " << stream->id(); |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 QuicStreamId stream_id) { | 377 QuicStreamId stream_id) { |
378 decompression_blocked_streams_[header_id] = stream_id; | 378 decompression_blocked_streams_[header_id] = stream_id; |
379 } | 379 } |
380 | 380 |
381 void QuicSession::PostProcessAfterData() { | 381 void QuicSession::PostProcessAfterData() { |
382 STLDeleteElements(&closed_streams_); | 382 STLDeleteElements(&closed_streams_); |
383 closed_streams_.clear(); | 383 closed_streams_.clear(); |
384 } | 384 } |
385 | 385 |
386 } // namespace net | 386 } // namespace net |
OLD | NEW |