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

Side by Side Diff: net/quic/chromium/quic_chromium_client_stream.h

Issue 2677883002: QUIC: Do not count the duplicate received bytes in GetTotalReceivedBytes (Closed)
Patch Set: use sequencer Created 3 years, 10 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 | « no previous file | net/quic/chromium/quic_http_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) 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 // NOTE: This code is not shared between Google and Chrome. 5 // NOTE: This code is not shared between Google and Chrome.
6 6
7 #ifndef NET_QUIC_CHROMIUM_QUIC_CHROMIUM_CLIENT_STREAM_H_ 7 #ifndef NET_QUIC_CHROMIUM_QUIC_CHROMIUM_CLIENT_STREAM_H_
8 #define NET_QUIC_CHROMIUM_QUIC_CHROMIUM_CLIENT_STREAM_H_ 8 #define NET_QUIC_CHROMIUM_QUIC_CHROMIUM_CLIENT_STREAM_H_
9 9
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // Prevents this stream from migrating to a new network. May cause other 118 // Prevents this stream from migrating to a new network. May cause other
119 // concurrent streams within the session to also not migrate. 119 // concurrent streams within the session to also not migrate.
120 void DisableConnectionMigration(); 120 void DisableConnectionMigration();
121 121
122 bool can_migrate() { return can_migrate_; } 122 bool can_migrate() { return can_migrate_; }
123 123
124 // True if this stream is the first data stream created on this session. 124 // True if this stream is the first data stream created on this session.
125 bool IsFirstStream(); 125 bool IsFirstStream();
126 126
127 using QuicSpdyStream::HasBufferedData; 127 using QuicSpdyStream::HasBufferedData;
128 using QuicStream::sequencer;
128 129
129 private: 130 private:
130 void NotifyDelegateOfHeadersCompleteLater(SpdyHeaderBlock headers, 131 void NotifyDelegateOfHeadersCompleteLater(SpdyHeaderBlock headers,
131 size_t frame_len); 132 size_t frame_len);
132 void NotifyDelegateOfHeadersComplete(SpdyHeaderBlock headers, 133 void NotifyDelegateOfHeadersComplete(SpdyHeaderBlock headers,
133 size_t frame_len); 134 size_t frame_len);
134 void NotifyDelegateOfDataAvailableLater(); 135 void NotifyDelegateOfDataAvailableLater();
135 void NotifyDelegateOfDataAvailable(); 136 void NotifyDelegateOfDataAvailable();
136 void RunOrBuffer(base::Closure closure); 137 void RunOrBuffer(base::Closure closure);
137 138
(...skipping 13 matching lines...) Expand all
151 std::deque<base::Closure> delegate_tasks_; 152 std::deque<base::Closure> delegate_tasks_;
152 153
153 base::WeakPtrFactory<QuicChromiumClientStream> weak_factory_; 154 base::WeakPtrFactory<QuicChromiumClientStream> weak_factory_;
154 155
155 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientStream); 156 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientStream);
156 }; 157 };
157 158
158 } // namespace net 159 } // namespace net
159 160
160 #endif // NET_QUIC_CHROMIUM_QUIC_CHROMIUM_CLIENT_STREAM_H_ 161 #endif // NET_QUIC_CHROMIUM_QUIC_CHROMIUM_CLIENT_STREAM_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/chromium/quic_http_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698