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

Side by Side Diff: net/quic/quic_reliable_client_stream.h

Issue 667053006: Fix a bug where QUIC connections would not fallback to TCP if the connection fails. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 2 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/quic_reliable_client_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_QUIC_RELIABLE_CLIENT_STREAM_H_ 7 #ifndef NET_QUIC_QUIC_RELIABLE_CLIENT_STREAM_H_
8 #define NET_QUIC_QUIC_RELIABLE_CLIENT_STREAM_H_ 8 #define NET_QUIC_QUIC_RELIABLE_CLIENT_STREAM_H_
9 9
10 #include "net/base/ip_endpoint.h" 10 #include "net/base/ip_endpoint.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 }; 48 };
49 49
50 QuicReliableClientStream(QuicStreamId id, 50 QuicReliableClientStream(QuicStreamId id,
51 QuicSession* session, 51 QuicSession* session,
52 const BoundNetLog& net_log); 52 const BoundNetLog& net_log);
53 53
54 ~QuicReliableClientStream() override; 54 ~QuicReliableClientStream() override;
55 55
56 // QuicDataStream 56 // QuicDataStream
57 uint32 ProcessData(const char* data, uint32 data_len) override; 57 uint32 ProcessData(const char* data, uint32 data_len) override;
58 void OnFinRead() override; 58 void OnClose() override;
59 void OnCanWrite() override; 59 void OnCanWrite() override;
60 QuicPriority EffectivePriority() const override; 60 QuicPriority EffectivePriority() const override;
61 61
62 // While the server's set_priority shouldn't be called externally, the creator 62 // While the server's set_priority shouldn't be called externally, the creator
63 // of client-side streams should be able to set the priority. 63 // of client-side streams should be able to set the priority.
64 using QuicDataStream::set_priority; 64 using QuicDataStream::set_priority;
65 65
66 int WriteStreamData(base::StringPiece data, 66 int WriteStreamData(base::StringPiece data,
67 bool fin, 67 bool fin,
68 const CompletionCallback& callback); 68 const CompletionCallback& callback);
(...skipping 19 matching lines...) Expand all
88 Delegate* delegate_; 88 Delegate* delegate_;
89 89
90 CompletionCallback callback_; 90 CompletionCallback callback_;
91 91
92 DISALLOW_COPY_AND_ASSIGN(QuicReliableClientStream); 92 DISALLOW_COPY_AND_ASSIGN(QuicReliableClientStream);
93 }; 93 };
94 94
95 } // namespace net 95 } // namespace net
96 96
97 #endif // NET_QUIC_QUIC_RELIABLE_CLIENT_STREAM_H_ 97 #endif // NET_QUIC_QUIC_RELIABLE_CLIENT_STREAM_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_reliable_client_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698