| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef NET_QUIC_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_ | 5 #ifndef NET_QUIC_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_ |
| 6 #define NET_QUIC_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_ | 6 #define NET_QUIC_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 // QuicChromiumClientStream::Delegate implementation: | 61 // QuicChromiumClientStream::Delegate implementation: |
| 62 void OnHeadersAvailable(const SpdyHeaderBlock& headers, | 62 void OnHeadersAvailable(const SpdyHeaderBlock& headers, |
| 63 size_t frame_len) override; | 63 size_t frame_len) override; |
| 64 void OnDataAvailable() override; | 64 void OnDataAvailable() override; |
| 65 void OnClose() override; | 65 void OnClose() override; |
| 66 void OnError(int error) override; | 66 void OnError(int error) override; |
| 67 bool HasSendHeadersComplete() override; | 67 bool HasSendHeadersComplete() override; |
| 68 | 68 |
| 69 // QuicChromiumClientSession::Observer implementation: | 69 // QuicChromiumClientSession::Observer implementation: |
| 70 void OnCryptoHandshakeConfirmed() override; | 70 void OnCryptoHandshakeConfirmed() override; |
| 71 void OnSuccessfulVersionNegotiation(const QuicVersion& version) override; |
| 71 void OnSessionClosed(int error, bool port_migration_detected) override; | 72 void OnSessionClosed(int error, bool port_migration_detected) override; |
| 72 | 73 |
| 73 void OnStreamReady(int rv); | 74 void OnStreamReady(int rv); |
| 74 void OnSendDataComplete(int rv); | 75 void OnSendDataComplete(int rv); |
| 75 void OnReadDataComplete(int rv); | 76 void OnReadDataComplete(int rv); |
| 76 | 77 |
| 77 // Notifies the delegate of an error. | 78 // Notifies the delegate of an error. |
| 78 void NotifyError(int error); | 79 void NotifyError(int error); |
| 79 // Notifies the delegate that the stream is ready. | 80 // Notifies the delegate that the stream is ready. |
| 80 void NotifyStreamReady(); | 81 void NotifyStreamReady(); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 bool waiting_for_confirmation_; | 134 bool waiting_for_confirmation_; |
| 134 | 135 |
| 135 base::WeakPtrFactory<BidirectionalStreamQuicImpl> weak_factory_; | 136 base::WeakPtrFactory<BidirectionalStreamQuicImpl> weak_factory_; |
| 136 | 137 |
| 137 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamQuicImpl); | 138 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamQuicImpl); |
| 138 }; | 139 }; |
| 139 | 140 |
| 140 } // namespace net | 141 } // namespace net |
| 141 | 142 |
| 142 #endif // NET_QUIC_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_ | 143 #endif // NET_QUIC_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_ |
| OLD | NEW |