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

Unified Diff: net/quic/quic_client_session.cc

Issue 612323013: QUIC - (no behavior change) s/NULL/nullptr/g in .../quic/... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_ack_notifier_manager.cc ('k') | net/quic/quic_client_session_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_client_session.cc
diff --git a/net/quic/quic_client_session.cc b/net/quic/quic_client_session.cc
index 2bea4815e318b6a17e828583432a2eb9024cf6d9..5454c105cf30bbbd76c6d0bdb3533ef092c2caaa 100644
--- a/net/quic/quic_client_session.cc
+++ b/net/quic/quic_client_session.cc
@@ -94,7 +94,7 @@ void RecordHandshakeState(HandshakeState state) {
} // namespace
-QuicClientSession::StreamRequest::StreamRequest() : stream_(NULL) {}
+QuicClientSession::StreamRequest::StreamRequest() : stream_(nullptr) {}
QuicClientSession::StreamRequest::~StreamRequest() {
CancelRequest();
@@ -196,7 +196,7 @@ QuicClientSession::~QuicClientSession() {
DCHECK(observers_.empty());
CloseAllObservers(ERR_UNEXPECTED);
- connection()->set_debug_visitor(NULL);
+ connection()->set_debug_visitor(nullptr);
net_log_.EndEvent(NetLog::TYPE_QUIC_SESSION);
while (!stream_requests_.empty()) {
@@ -361,21 +361,21 @@ void QuicClientSession::CancelRequest(StreamRequest* request) {
QuicReliableClientStream* QuicClientSession::CreateOutgoingDataStream() {
if (!crypto_stream_->encryption_established()) {
DVLOG(1) << "Encryption not active so no outgoing stream created.";
- return NULL;
+ return nullptr;
}
if (GetNumOpenStreams() >= get_max_open_streams()) {
DVLOG(1) << "Failed to create a new outgoing stream. "
<< "Already " << GetNumOpenStreams() << " open.";
- return NULL;
+ return nullptr;
}
if (goaway_received()) {
DVLOG(1) << "Failed to create a new outgoing stream. "
<< "Already received goaway.";
- return NULL;
+ return nullptr;
}
if (going_away_) {
RecordUnexpectedOpenStreams(CREATE_OUTGOING_RELIABLE_STREAM);
- return NULL;
+ return nullptr;
}
return CreateOutgoingReliableStreamImpl();
}
@@ -510,7 +510,7 @@ bool QuicClientSession::CanPool(const std::string& hostname) const {
QuicDataStream* QuicClientSession::CreateIncomingDataStream(
QuicStreamId id) {
DLOG(ERROR) << "Server push not supported";
- return NULL;
+ return nullptr;
}
void QuicClientSession::CloseStream(QuicStreamId stream_id) {
« no previous file with comments | « net/quic/quic_ack_notifier_manager.cc ('k') | net/quic/quic_client_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698