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

Unified Diff: net/quic/core/quic_client_session_base.cc

Issue 2611613003: Add quic_logging (Closed)
Patch Set: fix failed test? Created 3 years, 11 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/core/quic_client_promised_info_test.cc ('k') | net/quic/core/quic_config.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_client_session_base.cc
diff --git a/net/quic/core/quic_client_session_base.cc b/net/quic/core/quic_client_session_base.cc
index d0e6c4d764507301dce39845ffe71801138e8ea2..a3533721ed7e1f888c5984c910b53b38ffa011f9 100644
--- a/net/quic/core/quic_client_session_base.cc
+++ b/net/quic/core/quic_client_session_base.cc
@@ -7,6 +7,7 @@
#include "net/quic/core/quic_client_promised_info.h"
#include "net/quic/core/quic_flags.h"
#include "net/quic/core/spdy_utils.h"
+#include "net/quic/platform/api/quic_logging.h"
using base::StringPiece;
using std::string;
@@ -24,7 +25,7 @@ QuicClientSessionBase::QuicClientSessionBase(
QuicClientSessionBase::~QuicClientSessionBase() {
// all promised streams for this session
for (auto& it : promised_by_id_) {
- DVLOG(1) << "erase stream " << it.first << " url " << it.second->url();
+ QUIC_DVLOG(1) << "erase stream " << it.first << " url " << it.second->url();
push_promise_index_->promised_by_url()->erase(it.second->url());
}
delete connection();
@@ -86,13 +87,13 @@ bool QuicClientSessionBase::HandlePromised(QuicStreamId /* associated_id */,
if (IsClosedStream(id)) {
// There was a RST on the data stream already, perhaps
// QUIC_REFUSED_STREAM?
- DVLOG(1) << "Promise ignored for stream " << id
- << " that is already closed";
+ QUIC_DVLOG(1) << "Promise ignored for stream " << id
+ << " that is already closed";
return false;
}
if (push_promise_index_->promised_by_url()->size() >= get_max_promises()) {
- DVLOG(1) << "Too many promises, rejecting promise for stream " << id;
+ QUIC_DVLOG(1) << "Too many promises, rejecting promise for stream " << id;
ResetPromised(id, QUIC_REFUSED_STREAM);
return false;
}
@@ -100,8 +101,8 @@ bool QuicClientSessionBase::HandlePromised(QuicStreamId /* associated_id */,
const string url = SpdyUtils::GetUrlFromHeaderBlock(headers);
QuicClientPromisedInfo* old_promised = GetPromisedByUrl(url);
if (old_promised) {
- DVLOG(1) << "Promise for stream " << id << " is duplicate URL " << url
- << " of previous promise for stream " << old_promised->id();
+ QUIC_DVLOG(1) << "Promise for stream " << id << " is duplicate URL " << url
+ << " of previous promise for stream " << old_promised->id();
ResetPromised(id, QUIC_DUPLICATE_PROMISE_URL);
return false;
}
@@ -116,7 +117,7 @@ bool QuicClientSessionBase::HandlePromised(QuicStreamId /* associated_id */,
QuicClientPromisedInfo* promised = new QuicClientPromisedInfo(this, id, url);
std::unique_ptr<QuicClientPromisedInfo> promised_owner(promised);
promised->Init();
- DVLOG(1) << "stream " << id << " emplace url " << url;
+ QUIC_DVLOG(1) << "stream " << id << " emplace url " << url;
(*push_promise_index_->promised_by_url())[url] = promised;
promised_by_id_[id] = std::move(promised_owner);
promised->OnPromiseHeaders(headers);
« no previous file with comments | « net/quic/core/quic_client_promised_info_test.cc ('k') | net/quic/core/quic_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698