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

Side by Side Diff: net/quic/core/quic_packets.h

Issue 2544033002: Delete unused QuicData::owns_buffer method. No behavior change. (Closed)
Patch Set: 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 | no next file » | 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 #ifndef NET_QUIC_QUIC_PROTOCOL_H_ 5 #ifndef NET_QUIC_QUIC_PROTOCOL_H_
6 #define NET_QUIC_QUIC_PROTOCOL_H_ 6 #define NET_QUIC_QUIC_PROTOCOL_H_
7 7
8 #include <limits> 8 #include <limits>
9 #include <list> 9 #include <list>
10 #include <memory> 10 #include <memory>
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 QuicData(const char* buffer, size_t length); 111 QuicData(const char* buffer, size_t length);
112 QuicData(const char* buffer, size_t length, bool owns_buffer); 112 QuicData(const char* buffer, size_t length, bool owns_buffer);
113 virtual ~QuicData(); 113 virtual ~QuicData();
114 114
115 base::StringPiece AsStringPiece() const { 115 base::StringPiece AsStringPiece() const {
116 return base::StringPiece(data(), length()); 116 return base::StringPiece(data(), length());
117 } 117 }
118 118
119 const char* data() const { return buffer_; } 119 const char* data() const { return buffer_; }
120 size_t length() const { return length_; } 120 size_t length() const { return length_; }
121 bool owns_buffer() const { return owns_buffer_; }
122 121
123 private: 122 private:
124 const char* buffer_; 123 const char* buffer_;
125 size_t length_; 124 size_t length_;
126 bool owns_buffer_; 125 bool owns_buffer_;
127 126
128 DISALLOW_COPY_AND_ASSIGN(QuicData); 127 DISALLOW_COPY_AND_ASSIGN(QuicData);
129 }; 128 };
130 129
131 class NET_EXPORT_PRIVATE QuicPacket : public QuicData { 130 class NET_EXPORT_PRIVATE QuicPacket : public QuicData {
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 NET_EXPORT_PRIVATE void ClearSerializedPacket( 254 NET_EXPORT_PRIVATE void ClearSerializedPacket(
256 SerializedPacket* serialized_packet); 255 SerializedPacket* serialized_packet);
257 256
258 // Allocates a new char[] of size |packet.encrypted_length| and copies in 257 // Allocates a new char[] of size |packet.encrypted_length| and copies in
259 // |packet.encrypted_buffer|. 258 // |packet.encrypted_buffer|.
260 NET_EXPORT_PRIVATE char* CopyBuffer(const SerializedPacket& packet); 259 NET_EXPORT_PRIVATE char* CopyBuffer(const SerializedPacket& packet);
261 260
262 } // namespace net 261 } // namespace net
263 262
264 #endif // NET_QUIC_QUIC_PROTOCOL_H_ 263 #endif // NET_QUIC_QUIC_PROTOCOL_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698