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

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

Issue 2516033003: Landing Recent QUIC changes until Mon Nov 14 04:43:50 2016 +0000 (Closed)
Patch Set: Remove unused UpdatePacketGapSentHistogram() function. Created 4 years, 1 month 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_types.h ('k') | net/quic/core/quic_unacked_packet_map_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_types.cc
diff --git a/net/quic/core/quic_types.cc b/net/quic/core/quic_types.cc
index 49260ba4ef3e96da623405897d1616a580c4ad3a..9603aa62be52f14cc05b1d88770576e08a5f16fe 100644
--- a/net/quic/core/quic_types.cc
+++ b/net/quic/core/quic_types.cc
@@ -17,6 +17,15 @@ ostream& operator<<(ostream& os, const QuicConsumedData& s) {
return os;
}
+ostream& operator<<(ostream& os, const Perspective& s) {
+ if (s == Perspective::IS_SERVER) {
+ os << "IS_SERVER";
+ } else {
+ os << "IS_CLIENT";
+ }
+ return os;
+}
+
WriteResult::WriteResult() : status(WRITE_STATUS_ERROR), bytes_written(0) {}
WriteResult::WriteResult(WriteStatus status, int bytes_written_or_error_code)
« no previous file with comments | « net/quic/core/quic_types.h ('k') | net/quic/core/quic_unacked_packet_map_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698