Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Side by Side Diff: net/quic/quartc/quartc_stream.h

Issue 2913413002: Groundwork for cancelling quartc streams after a deadline is exceeded. (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/quartc/quartc_session_interface.h ('k') | net/quic/quartc/quartc_stream.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2017 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_QUARTC_QUARTC_STREAM_H_ 5 #ifndef NET_QUIC_QUARTC_QUARTC_STREAM_H_
6 #define NET_QUIC_QUARTC_QUARTC_STREAM_H_ 6 #define NET_QUIC_QUARTC_QUARTC_STREAM_H_
7 7
8 #include "net/quic/core/quic_session.h" 8 #include "net/quic/core/quic_session.h"
9 #include "net/quic/core/quic_stream.h" 9 #include "net/quic/core/quic_stream.h"
10 #include "net/quic/quartc/quartc_stream_interface.h" 10 #include "net/quic/quartc/quartc_stream_interface.h"
(...skipping 14 matching lines...) Expand all
25 25
26 void OnCanWrite() override; 26 void OnCanWrite() override;
27 27
28 // QuartcStreamInterface overrides. 28 // QuartcStreamInterface overrides.
29 uint32_t stream_id() override; 29 uint32_t stream_id() override;
30 30
31 uint64_t buffered_amount() override; 31 uint64_t buffered_amount() override;
32 32
33 bool fin_sent() override; 33 bool fin_sent() override;
34 34
35 int stream_error() override;
36
37 int connection_error() override;
38
35 void Write(const char* data, 39 void Write(const char* data,
36 size_t size, 40 size_t size,
37 const WriteParameters& param) override; 41 const WriteParameters& param) override;
38 42
39 void Close() override; 43 void Close() override;
40 44
41 void SetDelegate(QuartcStreamInterface::Delegate* delegate) override; 45 void SetDelegate(QuartcStreamInterface::Delegate* delegate) override;
42 46
43 private: 47 private:
44 QuartcStreamInterface::Delegate* delegate_ = nullptr; 48 QuartcStreamInterface::Delegate* delegate_ = nullptr;
45 }; 49 };
46 50
47 } // namespace net 51 } // namespace net
48 52
49 #endif // NET_QUIC_QUARTC_QUARTC_STREAM_H_ 53 #endif // NET_QUIC_QUARTC_QUARTC_STREAM_H_
OLDNEW
« no previous file with comments | « net/quic/quartc/quartc_session_interface.h ('k') | net/quic/quartc/quartc_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698