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

Unified Diff: net/quic/core/quic_ack_listener_interface.h

Issue 2589983002: Create a QUIC wrapper around scoped_refptr. (Closed)
Patch Set: rm = nullptr 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/core/crypto/quic_server_info.h ('k') | net/quic/core/quic_ack_listener_interface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_ack_listener_interface.h
diff --git a/net/quic/core/quic_ack_listener_interface.h b/net/quic/core/quic_ack_listener_interface.h
index 8316da9896bcd166f000fd9a0774c739c4b922fc..cd3373a2f453e382e1b74348f1443e96512ad385 100644
--- a/net/quic/core/quic_ack_listener_interface.h
+++ b/net/quic/core/quic_ack_listener_interface.h
@@ -5,16 +5,16 @@
#ifndef NET_QUIC_CORE_QUIC_ACK_LISTENER_INTERFACE_H_
#define NET_QUIC_CORE_QUIC_ACK_LISTENER_INTERFACE_H_
-#include "base/memory/ref_counted.h"
#include "net/quic/core/quic_time.h"
#include "net/quic/core/quic_types.h"
#include "net/quic/platform/api/quic_export.h"
+#include "net/quic/platform/api/quic_reference_counted.h"
namespace net {
// Pure virtual class to listen for packet acknowledgements.
class QUIC_EXPORT_PRIVATE QuicAckListenerInterface
- : public base::RefCounted<QuicAckListenerInterface> {
+ : public QuicReferenceCounted {
public:
QuicAckListenerInterface() {}
@@ -28,19 +28,18 @@ class QUIC_EXPORT_PRIVATE QuicAckListenerInterface
virtual void OnPacketRetransmitted(int retransmitted_bytes) = 0;
protected:
- friend class base::RefCounted<QuicAckListenerInterface>;
-
// Delegates are ref counted.
- virtual ~QuicAckListenerInterface() {}
+ ~QuicAckListenerInterface() override;
};
struct QUIC_EXPORT_PRIVATE AckListenerWrapper {
- AckListenerWrapper(scoped_refptr<QuicAckListenerInterface> listener,
- QuicPacketLength data_length);
+ AckListenerWrapper(
+ QuicReferenceCountedPointer<QuicAckListenerInterface> listener,
+ QuicPacketLength data_length);
AckListenerWrapper(const AckListenerWrapper& other);
~AckListenerWrapper();
- scoped_refptr<QuicAckListenerInterface> ack_listener;
+ QuicReferenceCountedPointer<QuicAckListenerInterface> ack_listener;
QuicPacketLength length;
};
« no previous file with comments | « net/quic/core/crypto/quic_server_info.h ('k') | net/quic/core/quic_ack_listener_interface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698