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

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

Issue 2524523002: Remove various 'using std::' statements from QUIC code and use (Closed)
Patch Set: Rebase 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/quic_packet_creator_test.cc ('k') | net/quic/core/quic_received_packet_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_packets.cc
diff --git a/net/quic/core/quic_packets.cc b/net/quic/core/quic_packets.cc
index 253155d00b492b6acf586cb9cb7aa17f40e1ca06..a8873e9e56db9e691467b6bd07b30ab53f4403dc 100644
--- a/net/quic/core/quic_packets.cc
+++ b/net/quic/core/quic_packets.cc
@@ -11,9 +11,6 @@
#include "net/quic/core/quic_versions.h"
using base::StringPiece;
-using std::map;
-using std::numeric_limits;
-using std::ostream;
using std::string;
namespace net {
@@ -85,7 +82,7 @@ QuicPublicResetPacket::QuicPublicResetPacket(
const QuicPacketPublicHeader& header)
: public_header(header), nonce_proof(0), rejected_packet_number(0) {}
-ostream& operator<<(ostream& os, const QuicPacketHeader& header) {
+std::ostream& operator<<(std::ostream& os, const QuicPacketHeader& header) {
os << "{ connection_id: " << header.public_header.connection_id
<< ", connection_id_length: " << header.public_header.connection_id_length
<< ", packet_number_length: " << header.public_header.packet_number_length
@@ -151,7 +148,7 @@ std::unique_ptr<QuicEncryptedPacket> QuicEncryptedPacket::Clone() const {
return base::MakeUnique<QuicEncryptedPacket>(buffer, this->length(), true);
}
-ostream& operator<<(ostream& os, const QuicEncryptedPacket& s) {
+std::ostream& operator<<(std::ostream& os, const QuicEncryptedPacket& s) {
os << s.length() << "-byte data";
return os;
}
@@ -188,7 +185,7 @@ std::unique_ptr<QuicReceivedPacket> QuicReceivedPacket::Clone() const {
buffer, this->length(), receipt_time(), true, ttl(), ttl() >= 0);
}
-ostream& operator<<(ostream& os, const QuicReceivedPacket& s) {
+std::ostream& operator<<(std::ostream& os, const QuicReceivedPacket& s) {
os << s.length() << "-byte data";
return os;
}
« no previous file with comments | « net/quic/core/quic_packet_creator_test.cc ('k') | net/quic/core/quic_received_packet_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698