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

Unified Diff: net/quic/quic_packet_generator.h

Issue 1397113003: relnote: Refactor stream buffer allocation out into a scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with TOT Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_packet_creator_test.cc ('k') | net/quic/quic_packet_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_packet_generator.h
diff --git a/net/quic/quic_packet_generator.h b/net/quic/quic_packet_generator.h
index 923d01e32bddbc0ed89d7ba38ee4a46e1f30c382..f782e3c6c2ec8a6370e38811aa7780d5bec26fb2 100644
--- a/net/quic/quic_packet_generator.h
+++ b/net/quic/quic_packet_generator.h
@@ -258,9 +258,10 @@ class NET_EXPORT_PRIVATE QuicPacketGenerator {
bool CanSendWithNextPendingFrameAddition() const;
// Add exactly one pending frame, preferring ack frames over control frames.
bool AddNextPendingFrame();
- // Adds a frame and takes ownership of the underlying buffer if the addition
- // was successful.
- bool AddFrame(const QuicFrame& frame, char* buffer, bool needs_padding);
+ // Adds a frame and takes ownership of the underlying buffer.
+ bool AddFrame(const QuicFrame& frame,
+ UniqueStreamBuffer buffer,
+ bool needs_padding);
void SerializeAndSendPacket();
« no previous file with comments | « net/quic/quic_packet_creator_test.cc ('k') | net/quic/quic_packet_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698