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/spdy/spdy_proxy_client_socket.h" | 5 #include "net/spdy/spdy_proxy_client_socket.h" |
6 | 6 |
7 #include <algorithm> // min | 7 #include <algorithm> // min |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 read_callback.Run(status); | 540 read_callback.Run(status); |
541 } else if (!read_callback_.is_null()) { | 541 } else if (!read_callback_.is_null()) { |
542 // If we have a read_callback_, the we need to make sure we call it back. | 542 // If we have a read_callback_, the we need to make sure we call it back. |
543 OnDataReceived(NULL, 0); | 543 OnDataReceived(NULL, 0); |
544 } | 544 } |
545 // This may have been deleted by read_callback_, so check first. | 545 // This may have been deleted by read_callback_, so check first. |
546 if (weak_ptr && !write_callback.is_null()) | 546 if (weak_ptr && !write_callback.is_null()) |
547 write_callback.Run(ERR_CONNECTION_CLOSED); | 547 write_callback.Run(ERR_CONNECTION_CLOSED); |
548 } | 548 } |
549 | 549 |
550 void SpdyProxyClientSocket::set_chunk_callback(ChunkCallback* /*callback*/) { | |
551 } | |
552 | |
553 } // namespace net | 550 } // namespace net |
OLD | NEW |