OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/quic/quic_connection_logger.h" | 5 #include "net/quic/quic_connection_logger.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 } | 107 } |
108 | 108 |
109 return dict; | 109 return dict; |
110 } | 110 } |
111 | 111 |
112 base::Value* NetLogQuicRstStreamFrameCallback( | 112 base::Value* NetLogQuicRstStreamFrameCallback( |
113 const QuicRstStreamFrame* frame, | 113 const QuicRstStreamFrame* frame, |
114 NetLog::LogLevel /* log_level */) { | 114 NetLog::LogLevel /* log_level */) { |
115 base::DictionaryValue* dict = new base::DictionaryValue(); | 115 base::DictionaryValue* dict = new base::DictionaryValue(); |
116 dict->SetInteger("stream_id", frame->stream_id); | 116 dict->SetInteger("stream_id", frame->stream_id); |
117 dict->SetInteger("error_code", frame->error_code); | 117 dict->SetInteger("quic_rst_stream_error", frame->error_code); |
118 dict->SetString("details", frame->error_details); | 118 dict->SetString("details", frame->error_details); |
119 return dict; | 119 return dict; |
120 } | 120 } |
121 | 121 |
122 base::Value* NetLogQuicConnectionCloseFrameCallback( | 122 base::Value* NetLogQuicConnectionCloseFrameCallback( |
123 const QuicConnectionCloseFrame* frame, | 123 const QuicConnectionCloseFrame* frame, |
124 NetLog::LogLevel /* log_level */) { | 124 NetLog::LogLevel /* log_level */) { |
125 base::DictionaryValue* dict = new base::DictionaryValue(); | 125 base::DictionaryValue* dict = new base::DictionaryValue(); |
126 dict->SetInteger("error_code", frame->error_code); | 126 dict->SetInteger("quic_error", frame->error_code); |
127 dict->SetString("details", frame->error_details); | 127 dict->SetString("details", frame->error_details); |
128 return dict; | 128 return dict; |
129 } | 129 } |
130 | 130 |
131 } // namespace | 131 } // namespace |
132 | 132 |
133 QuicConnectionLogger::QuicConnectionLogger(const BoundNetLog& net_log) | 133 QuicConnectionLogger::QuicConnectionLogger(const BoundNetLog& net_log) |
134 : net_log_(net_log) { | 134 : net_log_(net_log) { |
135 } | 135 } |
136 | 136 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 void QuicConnectionLogger::OnVersionNegotiationPacket( | 196 void QuicConnectionLogger::OnVersionNegotiationPacket( |
197 const QuicVersionNegotiationPacket& packet) { | 197 const QuicVersionNegotiationPacket& packet) { |
198 } | 198 } |
199 | 199 |
200 void QuicConnectionLogger::OnRevivedPacket( | 200 void QuicConnectionLogger::OnRevivedPacket( |
201 const QuicPacketHeader& revived_header, | 201 const QuicPacketHeader& revived_header, |
202 base::StringPiece payload) { | 202 base::StringPiece payload) { |
203 } | 203 } |
204 | 204 |
205 } // namespace net | 205 } // namespace net |
OLD | NEW |