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

Side by Side Diff: net/tools/quic/quic_time_wait_list_manager.cc

Issue 2740453006: Add QuicStringPiece which is actually StringPiece. (Closed)
Patch Set: fix compile error and rebase Created 3 years, 9 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_spdy_client_stream_test.cc ('k') | net/tools/quic/stateless_rejector.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 (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 #include "net/tools/quic/quic_time_wait_list_manager.h" 5 #include "net/tools/quic/quic_time_wait_list_manager.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 8
9 #include <memory> 9 #include <memory>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "net/quic/core/crypto/crypto_protocol.h" 12 #include "net/quic/core/crypto/crypto_protocol.h"
13 #include "net/quic/core/crypto/quic_decrypter.h" 13 #include "net/quic/core/crypto/quic_decrypter.h"
14 #include "net/quic/core/crypto/quic_encrypter.h" 14 #include "net/quic/core/crypto/quic_encrypter.h"
15 #include "net/quic/core/quic_flags.h" 15 #include "net/quic/core/quic_flags.h"
16 #include "net/quic/core/quic_framer.h" 16 #include "net/quic/core/quic_framer.h"
17 #include "net/quic/core/quic_packets.h" 17 #include "net/quic/core/quic_packets.h"
18 #include "net/quic/core/quic_utils.h" 18 #include "net/quic/core/quic_utils.h"
19 #include "net/quic/platform/api/quic_clock.h" 19 #include "net/quic/platform/api/quic_clock.h"
20 #include "net/quic/platform/api/quic_logging.h" 20 #include "net/quic/platform/api/quic_logging.h"
21 #include "net/quic/platform/api/quic_map_util.h" 21 #include "net/quic/platform/api/quic_map_util.h"
22 #include "net/quic/platform/api/quic_ptr_util.h" 22 #include "net/quic/platform/api/quic_ptr_util.h"
23 #include "net/quic/platform/api/quic_socket_address.h" 23 #include "net/quic/platform/api/quic_socket_address.h"
24 24
25 using base::StringPiece;
26
27 namespace net { 25 namespace net {
28 26
29 // A very simple alarm that just informs the QuicTimeWaitListManager to clean 27 // A very simple alarm that just informs the QuicTimeWaitListManager to clean
30 // up old connection_ids. This alarm should be cancelled and deleted before 28 // up old connection_ids. This alarm should be cancelled and deleted before
31 // the QuicTimeWaitListManager is deleted. 29 // the QuicTimeWaitListManager is deleted.
32 class ConnectionIdCleanUpAlarm : public QuicAlarm::Delegate { 30 class ConnectionIdCleanUpAlarm : public QuicAlarm::Delegate {
33 public: 31 public:
34 explicit ConnectionIdCleanUpAlarm( 32 explicit ConnectionIdCleanUpAlarm(
35 QuicTimeWaitListManager* time_wait_list_manager) 33 QuicTimeWaitListManager* time_wait_list_manager)
36 : time_wait_list_manager_(time_wait_list_manager) {} 34 : time_wait_list_manager_(time_wait_list_manager) {}
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 version(version_), 320 version(version_),
323 time_added(time_added_), 321 time_added(time_added_),
324 connection_rejected_statelessly(connection_rejected_statelessly) {} 322 connection_rejected_statelessly(connection_rejected_statelessly) {}
325 323
326 QuicTimeWaitListManager::ConnectionIdData::ConnectionIdData( 324 QuicTimeWaitListManager::ConnectionIdData::ConnectionIdData(
327 ConnectionIdData&& other) = default; 325 ConnectionIdData&& other) = default;
328 326
329 QuicTimeWaitListManager::ConnectionIdData::~ConnectionIdData() {} 327 QuicTimeWaitListManager::ConnectionIdData::~ConnectionIdData() {}
330 328
331 } // namespace net 329 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_spdy_client_stream_test.cc ('k') | net/tools/quic/stateless_rejector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698