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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 break; | 106 break; |
107 } | 107 } |
108 | 108 |
109 return dict; | 109 return dict; |
110 } | 110 } |
111 | 111 |
112 Value* NetLogQuicRstStreamFrameCallback(const QuicRstStreamFrame* frame, | 112 Value* NetLogQuicRstStreamFrameCallback(const QuicRstStreamFrame* frame, |
113 NetLog::LogLevel /* log_level */) { | 113 NetLog::LogLevel /* log_level */) { |
114 DictionaryValue* dict = new DictionaryValue(); | 114 DictionaryValue* dict = new DictionaryValue(); |
115 dict->SetInteger("stream_id", frame->stream_id); | 115 dict->SetInteger("stream_id", frame->stream_id); |
116 dict->SetInteger("error_code", frame->error_code); | 116 dict->SetInteger("quic_rst_stream_error", frame->error_code); |
117 dict->SetString("details", frame->error_details); | 117 dict->SetString("details", frame->error_details); |
118 return dict; | 118 return dict; |
119 } | 119 } |
120 | 120 |
121 Value* NetLogQuicConnectionCloseFrameCallback( | 121 Value* NetLogQuicConnectionCloseFrameCallback( |
122 const QuicConnectionCloseFrame* frame, | 122 const QuicConnectionCloseFrame* frame, |
123 NetLog::LogLevel /* log_level */) { | 123 NetLog::LogLevel /* log_level */) { |
124 DictionaryValue* dict = new DictionaryValue(); | 124 DictionaryValue* dict = new DictionaryValue(); |
125 dict->SetInteger("error_code", frame->error_code); | 125 dict->SetInteger("quic_error", frame->error_code); |
126 dict->SetString("details", frame->error_details); | 126 dict->SetString("details", frame->error_details); |
127 return dict; | 127 return dict; |
128 } | 128 } |
129 | 129 |
130 } // namespace | 130 } // namespace |
131 | 131 |
132 QuicConnectionLogger::QuicConnectionLogger(const BoundNetLog& net_log) | 132 QuicConnectionLogger::QuicConnectionLogger(const BoundNetLog& net_log) |
133 : net_log_(net_log) { | 133 : net_log_(net_log) { |
134 } | 134 } |
135 | 135 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 void QuicConnectionLogger::OnVersionNegotiationPacket( | 195 void QuicConnectionLogger::OnVersionNegotiationPacket( |
196 const QuicVersionNegotiationPacket& packet) { | 196 const QuicVersionNegotiationPacket& packet) { |
197 } | 197 } |
198 | 198 |
199 void QuicConnectionLogger::OnRevivedPacket( | 199 void QuicConnectionLogger::OnRevivedPacket( |
200 const QuicPacketHeader& revived_header, | 200 const QuicPacketHeader& revived_header, |
201 base::StringPiece payload) { | 201 base::StringPiece payload) { |
202 } | 202 } |
203 | 203 |
204 } // namespace net | 204 } // namespace net |
OLD | NEW |