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

Side by Side Diff: net/tools/quic/quic_packet_writer_wrapper.h

Issue 1670863002: QUIC - minor cleanup changes to keep code in sync with the internal source. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0204
Patch Set: Created 4 years, 10 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/tools/quic/quic_dispatcher.cc ('k') | net/tools/quic/quic_per_connection_packet_writer.h » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_TOOLS_QUIC_QUIC_PACKET_WRITER_WRAPPER_H_ 5 #ifndef NET_TOOLS_QUIC_QUIC_PACKET_WRITER_WRAPPER_H_
6 #define NET_TOOLS_QUIC_QUIC_PACKET_WRITER_WRAPPER_H_ 6 #define NET_TOOLS_QUIC_QUIC_PACKET_WRITER_WRAPPER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "net/quic/quic_packet_writer.h" 12 #include "net/quic/quic_packet_writer.h"
13 13
14 namespace net { 14 namespace net {
15 15
16
17 // Wraps a writer object to allow dynamically extending functionality. Use 16 // Wraps a writer object to allow dynamically extending functionality. Use
18 // cases: replace writer while dispatcher and connections hold on to the 17 // cases: replace writer while dispatcher and connections hold on to the
19 // wrapper; mix in monitoring; mix in mocks in unit tests. 18 // wrapper; mix in monitoring; mix in mocks in unit tests.
20 class QuicPacketWriterWrapper : public QuicPacketWriter { 19 class QuicPacketWriterWrapper : public QuicPacketWriter {
21 public: 20 public:
22 QuicPacketWriterWrapper(); 21 QuicPacketWriterWrapper();
23 explicit QuicPacketWriterWrapper(QuicPacketWriter* writer); 22 explicit QuicPacketWriterWrapper(QuicPacketWriter* writer);
24 ~QuicPacketWriterWrapper() override; 23 ~QuicPacketWriterWrapper() override;
25 24
26 // Default implementation of the QuicPacketWriter interface. Passes everything 25 // Default implementation of the QuicPacketWriter interface. Passes everything
(...skipping 13 matching lines...) Expand all
40 39
41 private: 40 private:
42 scoped_ptr<QuicPacketWriter> writer_; 41 scoped_ptr<QuicPacketWriter> writer_;
43 42
44 DISALLOW_COPY_AND_ASSIGN(QuicPacketWriterWrapper); 43 DISALLOW_COPY_AND_ASSIGN(QuicPacketWriterWrapper);
45 }; 44 };
46 45
47 } // namespace net 46 } // namespace net
48 47
49 #endif // NET_TOOLS_QUIC_QUIC_PACKET_WRITER_WRAPPER_H_ 48 #endif // NET_TOOLS_QUIC_QUIC_PACKET_WRITER_WRAPPER_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_dispatcher.cc ('k') | net/tools/quic/quic_per_connection_packet_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698