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

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

Issue 2193073003: Move shared files in net/quic/ into net/quic/core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: io_thread_unittest.cc Created 4 years, 4 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_simple_client_bin.cc ('k') | net/tools/quic/quic_simple_server.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_QUIC_TOOLS_QUIC_SIMPLE_PER_CONNECTION_PACKET_WRITER_H_ 5 #ifndef NET_QUIC_TOOLS_QUIC_SIMPLE_PER_CONNECTION_PACKET_WRITER_H_
6 #define NET_QUIC_TOOLS_QUIC_SIMPLE_PER_CONNECTION_PACKET_WRITER_H_ 6 #define NET_QUIC_TOOLS_QUIC_SIMPLE_PER_CONNECTION_PACKET_WRITER_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/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "net/quic/quic_connection.h" 12 #include "net/quic/core/quic_connection.h"
13 #include "net/quic/quic_packet_writer.h" 13 #include "net/quic/core/quic_packet_writer.h"
14 14
15 namespace net { 15 namespace net {
16 16
17 class QuicSimpleServerPacketWriter; 17 class QuicSimpleServerPacketWriter;
18 18
19 // A connection-specific packet writer that notifies its connection when its 19 // A connection-specific packet writer that notifies its connection when its
20 // writes to the shared QuicServerPacketWriter complete. 20 // writes to the shared QuicServerPacketWriter complete.
21 // This class is necessary because multiple connections can share the same 21 // This class is necessary because multiple connections can share the same
22 // QuicServerPacketWriter, so it has no way to know which connection to notify. 22 // QuicServerPacketWriter, so it has no way to know which connection to notify.
23 class QuicSimplePerConnectionPacketWriter : public QuicPacketWriter { 23 class QuicSimplePerConnectionPacketWriter : public QuicPacketWriter {
(...skipping 26 matching lines...) Expand all
50 QuicConnection* connection_; // Not owned. 50 QuicConnection* connection_; // Not owned.
51 51
52 base::WeakPtrFactory<QuicSimplePerConnectionPacketWriter> weak_factory_; 52 base::WeakPtrFactory<QuicSimplePerConnectionPacketWriter> weak_factory_;
53 53
54 DISALLOW_COPY_AND_ASSIGN(QuicSimplePerConnectionPacketWriter); 54 DISALLOW_COPY_AND_ASSIGN(QuicSimplePerConnectionPacketWriter);
55 }; 55 };
56 56
57 } // namespace net 57 } // namespace net
58 58
59 #endif // NET_QUIC_TOOLS_QUIC_SIMPLE_PER_CONNECTION_PACKET_WRITER_H_ 59 #endif // NET_QUIC_TOOLS_QUIC_SIMPLE_PER_CONNECTION_PACKET_WRITER_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_simple_client_bin.cc ('k') | net/tools/quic/quic_simple_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698