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

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

Issue 131743007: Remove WritePacket() from internal server's QuicDispatcher; (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « net/tools/quic/quic_dispatcher_test.cc ('k') | net/tools/quic/quic_server.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "net/quic/quic_packet_writer.h" 9 #include "net/quic/quic_packet_writer.h"
10 10
(...skipping 23 matching lines...) Expand all
34 virtual void SetWritable() OVERRIDE; 34 virtual void SetWritable() OVERRIDE;
35 35
36 // Takes ownership of |writer|. 36 // Takes ownership of |writer|.
37 void set_writer(QuicPacketWriter* writer); 37 void set_writer(QuicPacketWriter* writer);
38 38
39 // Releases ownership of |writer_|. 39 // Releases ownership of |writer_|.
40 QuicPacketWriter* release_writer(); 40 QuicPacketWriter* release_writer();
41 41
42 private: 42 private:
43 scoped_ptr<QuicPacketWriter> writer_; 43 scoped_ptr<QuicPacketWriter> writer_;
44
45 DISALLOW_COPY_AND_ASSIGN(QuicPacketWriterWrapper);
44 }; 46 };
45 47
46 } // namespace tools 48 } // namespace tools
47 } // namespace net 49 } // namespace net
48 50
49 #endif // NET_TOOLS_QUIC_QUIC_PACKET_WRITER_WRAPPER_H_ 51 #endif // NET_TOOLS_QUIC_QUIC_PACKET_WRITER_WRAPPER_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_dispatcher_test.cc ('k') | net/tools/quic/quic_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698