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

Unified Diff: net/tools/quic/test_tools/quic_test_client.cc

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/test_tools/quic_test_client.h ('k') | no next file » | 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.cc
diff --git a/net/tools/quic/test_tools/quic_test_client.cc b/net/tools/quic/test_tools/quic_test_client.cc
index 035df6bc155a78d3e7e0caa2e4c34b524ec5afab..29f151131e23148a88b9017c42d7b4db54af9a66 100644
--- a/net/tools/quic/test_tools/quic_test_client.cc
+++ b/net/tools/quic/test_tools/quic_test_client.cc
@@ -292,7 +292,7 @@ ssize_t QuicTestClient::GetOrCreateStreamAndSendRequest(
const SpdyHeaderBlock* headers,
StringPiece body,
bool fin,
- scoped_refptr<QuicAckListenerInterface> delegate) {
+ QuicReferenceCountedPointer<QuicAckListenerInterface> delegate) {
if (headers) {
QuicClientPushPromiseIndex::TryHandle* handle;
QuicAsyncStatus rv =
@@ -377,7 +377,7 @@ ssize_t QuicTestClient::SendData(const string& data, bool last_data) {
ssize_t QuicTestClient::SendData(
const string& data,
bool last_data,
- scoped_refptr<QuicAckListenerInterface> delegate) {
+ QuicReferenceCountedPointer<QuicAckListenerInterface> delegate) {
return GetOrCreateStreamAndSendRequest(nullptr, StringPiece(data), last_data,
std::move(delegate));
}
@@ -677,7 +677,7 @@ QuicTestClient::TestClientDataToResend::TestClientDataToResend(
base::StringPiece body,
bool fin,
QuicTestClient* test_client,
- scoped_refptr<QuicAckListenerInterface> delegate)
+ QuicReferenceCountedPointer<QuicAckListenerInterface> delegate)
: QuicClient::QuicDataToResend(std::move(headers), body, fin),
test_client_(test_client),
delegate_(std::move(delegate)) {}
« no previous file with comments | « net/tools/quic/test_tools/quic_test_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698