| 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 #include "net/quic/quic_flow_controller.h" | 10 #include "net/quic/quic_flow_controller.h" |
| 11 #include "net/quic/quic_headers_stream.h" | 11 #include "net/quic/quic_headers_stream.h" |
| 12 #include "net/ssl/ssl_info.h" | 12 #include "net/ssl/ssl_info.h" |
| 13 | 13 |
| 14 using base::StringPiece; | 14 using base::StringPiece; |
| 15 using base::hash_map; | 15 using base::hash_map; |
| 16 using base::hash_set; | 16 using base::hash_set; |
| 17 using std::make_pair; | 17 using std::make_pair; |
| 18 using std::map; |
| 18 using std::max; | 19 using std::max; |
| 20 using std::string; |
| 19 using std::vector; | 21 using std::vector; |
| 20 | 22 |
| 21 namespace net { | 23 namespace net { |
| 22 | 24 |
| 23 #define ENDPOINT (is_server() ? "Server: " : " Client: ") | 25 #define ENDPOINT (is_server() ? "Server: " : " Client: ") |
| 24 | 26 |
| 25 // We want to make sure we delete any closed streams in a safe manner. | 27 // We want to make sure we delete any closed streams in a safe manner. |
| 26 // To avoid deleting a stream in mid-operation, we have a simple shim between | 28 // To avoid deleting a stream in mid-operation, we have a simple shim between |
| 27 // us and the stream, so we can delete any streams when we return from | 29 // us and the stream, so we can delete any streams when we return from |
| 28 // processing. | 30 // processing. |
| (...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 776 for (DataStreamMap::iterator it = stream_map_.begin(); | 778 for (DataStreamMap::iterator it = stream_map_.begin(); |
| 777 it != stream_map_.end(); ++it) { | 779 it != stream_map_.end(); ++it) { |
| 778 if (it->second->flow_controller()->IsBlocked()) { | 780 if (it->second->flow_controller()->IsBlocked()) { |
| 779 return true; | 781 return true; |
| 780 } | 782 } |
| 781 } | 783 } |
| 782 return false; | 784 return false; |
| 783 } | 785 } |
| 784 | 786 |
| 785 } // namespace net | 787 } // namespace net |
| OLD | NEW |