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

Side by Side Diff: net/spdy/bidirectional_stream_spdy_impl.h

Issue 2526003002: Disallow multiple HEADERS frames on pushed streams. (Closed)
Patch Set: Rename enum, enum entry, and member. Created 4 years 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/spdy/bidirectional_stream_spdy_impl.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_SPDY_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_ 5 #ifndef NET_SPDY_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_
6 #define NET_SPDY_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_ 6 #define NET_SPDY_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 bool end_stream) override; 54 bool end_stream) override;
55 void SendvData(const std::vector<scoped_refptr<IOBuffer>>& buffers, 55 void SendvData(const std::vector<scoped_refptr<IOBuffer>>& buffers,
56 const std::vector<int>& lengths, 56 const std::vector<int>& lengths,
57 bool end_stream) override; 57 bool end_stream) override;
58 NextProto GetProtocol() const override; 58 NextProto GetProtocol() const override;
59 int64_t GetTotalReceivedBytes() const override; 59 int64_t GetTotalReceivedBytes() const override;
60 int64_t GetTotalSentBytes() const override; 60 int64_t GetTotalSentBytes() const override;
61 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; 61 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override;
62 62
63 // SpdyStream::Delegate implementation: 63 // SpdyStream::Delegate implementation:
64 void OnRequestHeadersSent() override; 64 void OnHeadersSent() override;
65 SpdyResponseHeadersStatus OnResponseHeadersUpdated( 65 void OnHeadersReceived(const SpdyHeaderBlock& response_headers) override;
66 const SpdyHeaderBlock& response_headers) override;
67 void OnDataReceived(std::unique_ptr<SpdyBuffer> buffer) override; 66 void OnDataReceived(std::unique_ptr<SpdyBuffer> buffer) override;
68 void OnDataSent() override; 67 void OnDataSent() override;
69 void OnTrailers(const SpdyHeaderBlock& trailers) override; 68 void OnTrailers(const SpdyHeaderBlock& trailers) override;
70 void OnClose(int status) override; 69 void OnClose(int status) override;
71 70
72 private: 71 private:
73 int SendRequestHeadersHelper(); 72 int SendRequestHeadersHelper();
74 void OnStreamInitialized(int rv); 73 void OnStreamInitialized(int rv);
75 // Notifies delegate of an error. 74 // Notifies delegate of an error.
76 void NotifyError(int rv); 75 void NotifyError(int rv);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 scoped_refptr<IOBuffer> pending_combined_buffer_; 124 scoped_refptr<IOBuffer> pending_combined_buffer_;
126 125
127 base::WeakPtrFactory<BidirectionalStreamSpdyImpl> weak_factory_; 126 base::WeakPtrFactory<BidirectionalStreamSpdyImpl> weak_factory_;
128 127
129 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamSpdyImpl); 128 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamSpdyImpl);
130 }; 129 };
131 130
132 } // namespace net 131 } // namespace net
133 132
134 #endif // NET_SPDY_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_ 133 #endif // NET_SPDY_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | net/spdy/bidirectional_stream_spdy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698