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

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

Issue 11364068: Add a QuicHttpStream class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix bugs Created 8 years, 1 month 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 | Annotate | Revision Log
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/upload_data_stream.h" 11 #include "net/base/upload_data_stream.h"
11 #include "net/http/http_request_info.h" 12 #include "net/http/http_request_info.h"
12 #include "net/http/http_response_info.h" 13 #include "net/http/http_response_info.h"
13 #include "net/http/http_stream.h" 14 #include "net/http/http_stream.h"
14 #include "net/quic/reliable_quic_stream.h" 15 #include "net/quic/reliable_quic_stream.h"
15 16
16 namespace net { 17 namespace net {
17 18
18 class QuicClientSession; 19 class QuicClientSession;
19 20
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // ReliableQuicStream 58 // ReliableQuicStream
58 virtual uint32 ProcessData(const char* data, uint32 data_len) OVERRIDE; 59 virtual uint32 ProcessData(const char* data, uint32 data_len) OVERRIDE;
59 virtual void TerminateFromPeer(bool half_close) OVERRIDE; 60 virtual void TerminateFromPeer(bool half_close) OVERRIDE;
60 61
61 // Set new |delegate|. |delegate| must not be NULL. 62 // Set new |delegate|. |delegate| must not be NULL.
62 // If this stream has already received data, OnDataReceived() will be 63 // If this stream has already received data, OnDataReceived() will be
63 // called on the delegate. 64 // called on the delegate.
64 void SetDelegate(Delegate* delegate); 65 void SetDelegate(Delegate* delegate);
65 Delegate* GetDelegate() { return delegate_; } 66 Delegate* GetDelegate() { return delegate_; }
66 67
68 virtual int WriteData(base::StringPiece data, bool fin) OVERRIDE;
69
70 IPEndPoint GetPeerAddress();
willchan no longer on Chromium 2012/11/21 22:55:05 Looks weird to me that this is non-const. Is there
Ryan Hamilton 2012/11/21 23:06:35 Hm. Perhaps it could be. The issue is that the i
71
67 private: 72 private:
68 Delegate* delegate_; 73 Delegate* delegate_;
69 74
70 DISALLOW_COPY_AND_ASSIGN(QuicReliableClientStream); 75 DISALLOW_COPY_AND_ASSIGN(QuicReliableClientStream);
71 }; 76 };
72 77
73 } // namespace net 78 } // namespace net
74 79
75 #endif // NET_QUIC_QUIC_RELIABLE_CLIENT_STREAM_H_ 80 #endif // NET_QUIC_QUIC_RELIABLE_CLIENT_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698