| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 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/spdy/bidirectional_stream_spdy_impl.h" | 5 #include "net/spdy/bidirectional_stream_spdy_impl.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/threading/thread_task_runner_handle.h" |
| 12 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 13 #include "base/timer/timer.h" | 14 #include "base/timer/timer.h" |
| 14 #include "net/http/bidirectional_stream_request_info.h" | 15 #include "net/http/bidirectional_stream_request_info.h" |
| 15 #include "net/spdy/spdy_buffer.h" | 16 #include "net/spdy/spdy_buffer.h" |
| 16 #include "net/spdy/spdy_header_block.h" | 17 #include "net/spdy/spdy_header_block.h" |
| 17 #include "net/spdy/spdy_http_utils.h" | 18 #include "net/spdy/spdy_http_utils.h" |
| 18 #include "net/spdy/spdy_stream.h" | 19 #include "net/spdy/spdy_stream.h" |
| 19 | 20 |
| 20 namespace net { | 21 namespace net { |
| 21 | 22 |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 return true; | 409 return true; |
| 409 } | 410 } |
| 410 LOG(ERROR) << "Trying to send data after stream has been destroyed."; | 411 LOG(ERROR) << "Trying to send data after stream has been destroyed."; |
| 411 base::ThreadTaskRunnerHandle::Get()->PostTask( | 412 base::ThreadTaskRunnerHandle::Get()->PostTask( |
| 412 FROM_HERE, base::Bind(&BidirectionalStreamSpdyImpl::NotifyError, | 413 FROM_HERE, base::Bind(&BidirectionalStreamSpdyImpl::NotifyError, |
| 413 weak_factory_.GetWeakPtr(), ERR_UNEXPECTED)); | 414 weak_factory_.GetWeakPtr(), ERR_UNEXPECTED)); |
| 414 return true; | 415 return true; |
| 415 } | 416 } |
| 416 | 417 |
| 417 } // namespace net | 418 } // namespace net |
| OLD | NEW |