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

Unified Diff: net/tools/quic/test_tools/quic_test_client.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/tools/quic/stateless_rejector.cc ('k') | net/tools/quic/test_tools/quic_test_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/test_tools/quic_test_client.h
diff --git a/net/tools/quic/test_tools/quic_test_client.h b/net/tools/quic/test_tools/quic_test_client.h
index 49991efd6ec0b0d0dd5c88ba6b6ba2941af30225..5f24d249b4dc42f6d94da1bd6a32776495ea3ed1 100644
--- a/net/tools/quic/test_tools/quic_test_client.h
+++ b/net/tools/quic/test_tools/quic_test_client.h
@@ -113,9 +113,10 @@ class QuicTestClient : public QuicSpdyStream::Visitor,
// Wraps data in a quic packet and sends it.
ssize_t SendData(const std::string& data, bool last_data);
// As above, but |delegate| will be notified when |data| is ACKed.
- ssize_t SendData(const std::string& data,
- bool last_data,
- scoped_refptr<QuicAckListenerInterface> delegate);
+ ssize_t SendData(
+ const std::string& data,
+ bool last_data,
+ QuicReferenceCountedPointer<QuicAckListenerInterface> delegate);
// Clears any outstanding state and sends a simple GET of 'uri' to the
// server. Returns 0 if the request failed and no bytes were written.
@@ -219,7 +220,7 @@ class QuicTestClient : public QuicSpdyStream::Visitor,
const SpdyHeaderBlock* headers,
base::StringPiece body,
bool fin,
- scoped_refptr<QuicAckListenerInterface> delegate);
+ QuicReferenceCountedPointer<QuicAckListenerInterface> delegate);
QuicRstStreamErrorCode stream_error() { return stream_error_; }
QuicErrorCode connection_error();
@@ -276,11 +277,12 @@ class QuicTestClient : public QuicSpdyStream::Visitor,
private:
class TestClientDataToResend : public QuicClient::QuicDataToResend {
public:
- TestClientDataToResend(std::unique_ptr<SpdyHeaderBlock> headers,
- base::StringPiece body,
- bool fin,
- QuicTestClient* test_client,
- scoped_refptr<QuicAckListenerInterface> delegate);
+ TestClientDataToResend(
+ std::unique_ptr<SpdyHeaderBlock> headers,
+ base::StringPiece body,
+ bool fin,
+ QuicTestClient* test_client,
+ QuicReferenceCountedPointer<QuicAckListenerInterface> delegate);
~TestClientDataToResend() override;
@@ -288,7 +290,7 @@ class QuicTestClient : public QuicSpdyStream::Visitor,
protected:
QuicTestClient* test_client_;
- scoped_refptr<QuicAckListenerInterface> delegate_;
+ QuicReferenceCountedPointer<QuicAckListenerInterface> delegate_;
};
// Given |uri|, populates the fields in |headers| for a simple GET
« no previous file with comments | « net/tools/quic/stateless_rejector.cc ('k') | net/tools/quic/test_tools/quic_test_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698