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

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

Issue 1969893002: Remove unnecessary array allocation in cronet_bidirectional_stream_adapter.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add include vector Created 4 years, 7 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/http/bidirectional_stream_unittest.cc ('k') | net/quic/bidirectional_stream_quic_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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_ 5 #ifndef NET_QUIC_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_
6 #define NET_QUIC_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_ 6 #define NET_QUIC_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 25 matching lines...) Expand all
36 36
37 ~BidirectionalStreamQuicImpl() override; 37 ~BidirectionalStreamQuicImpl() override;
38 38
39 // BidirectionalStreamImpl implementation: 39 // BidirectionalStreamImpl implementation:
40 void Start(const BidirectionalStreamRequestInfo* request_info, 40 void Start(const BidirectionalStreamRequestInfo* request_info,
41 const BoundNetLog& net_log, 41 const BoundNetLog& net_log,
42 bool disable_auto_flush, 42 bool disable_auto_flush,
43 BidirectionalStreamImpl::Delegate* delegate, 43 BidirectionalStreamImpl::Delegate* delegate,
44 std::unique_ptr<base::Timer> timer) override; 44 std::unique_ptr<base::Timer> timer) override;
45 int ReadData(IOBuffer* buffer, int buffer_len) override; 45 int ReadData(IOBuffer* buffer, int buffer_len) override;
46 void SendData(IOBuffer* data, int length, bool end_stream) override; 46 void SendData(const scoped_refptr<IOBuffer>& data,
47 void SendvData(const std::vector<IOBuffer*>& buffers, 47 int length,
48 bool end_stream) override;
49 void SendvData(const std::vector<scoped_refptr<IOBuffer>>& buffers,
48 const std::vector<int>& lengths, 50 const std::vector<int>& lengths,
49 bool end_stream) override; 51 bool end_stream) override;
50 void Cancel() override; 52 void Cancel() override;
51 NextProto GetProtocol() const override; 53 NextProto GetProtocol() const override;
52 int64_t GetTotalReceivedBytes() const override; 54 int64_t GetTotalReceivedBytes() const override;
53 int64_t GetTotalSentBytes() const override; 55 int64_t GetTotalSentBytes() const override;
54 56
55 private: 57 private:
56 // QuicChromiumClientStream::Delegate implementation: 58 // QuicChromiumClientStream::Delegate implementation:
57 void OnHeadersAvailable(const SpdyHeaderBlock& headers, 59 void OnHeadersAvailable(const SpdyHeaderBlock& headers,
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 bool disable_auto_flush_; 114 bool disable_auto_flush_;
113 115
114 base::WeakPtrFactory<BidirectionalStreamQuicImpl> weak_factory_; 116 base::WeakPtrFactory<BidirectionalStreamQuicImpl> weak_factory_;
115 117
116 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamQuicImpl); 118 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamQuicImpl);
117 }; 119 };
118 120
119 } // namespace net 121 } // namespace net
120 122
121 #endif // NET_QUIC_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_ 123 #endif // NET_QUIC_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_
OLDNEW
« no previous file with comments | « net/http/bidirectional_stream_unittest.cc ('k') | net/quic/bidirectional_stream_quic_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698