| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/spdy/spdy_session.h" | 5 #include "net/spdy/spdy_session.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 base::DictionaryValue* dict = new base::DictionaryValue(); | 162 base::DictionaryValue* dict = new base::DictionaryValue(); |
| 163 dict->SetInteger("stream_id", static_cast<int>(stream_id)); | 163 dict->SetInteger("stream_id", static_cast<int>(stream_id)); |
| 164 dict->SetInteger("delta", delta); | 164 dict->SetInteger("delta", delta); |
| 165 return dict; | 165 return dict; |
| 166 } | 166 } |
| 167 | 167 |
| 168 base::Value* NetLogSpdySessionWindowUpdateCallback( | 168 base::Value* NetLogSpdySessionWindowUpdateCallback( |
| 169 int32 delta, | 169 int32 delta, |
| 170 int32 window_size, | 170 int32 window_size, |
| 171 NetLog::LogLevel /* log_level */) { | 171 NetLog::LogLevel /* log_level */) { |
| 172 DictionaryValue* dict = new DictionaryValue(); | 172 base::DictionaryValue* dict = new base::DictionaryValue(); |
| 173 dict->SetInteger("delta", delta); | 173 dict->SetInteger("delta", delta); |
| 174 dict->SetInteger("window_size", window_size); | 174 dict->SetInteger("window_size", window_size); |
| 175 return dict; | 175 return dict; |
| 176 } | 176 } |
| 177 | 177 |
| 178 base::Value* NetLogSpdyDataCallback(SpdyStreamId stream_id, | 178 base::Value* NetLogSpdyDataCallback(SpdyStreamId stream_id, |
| 179 int size, | 179 int size, |
| 180 bool fin, | 180 bool fin, |
| 181 NetLog::LogLevel /* log_level */) { | 181 NetLog::LogLevel /* log_level */) { |
| 182 base::DictionaryValue* dict = new base::DictionaryValue(); | 182 base::DictionaryValue* dict = new base::DictionaryValue(); |
| (...skipping 2275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2458 if (!queue->empty()) { | 2458 if (!queue->empty()) { |
| 2459 SpdyStreamId stream_id = queue->front(); | 2459 SpdyStreamId stream_id = queue->front(); |
| 2460 queue->pop_front(); | 2460 queue->pop_front(); |
| 2461 return stream_id; | 2461 return stream_id; |
| 2462 } | 2462 } |
| 2463 } | 2463 } |
| 2464 return 0; | 2464 return 0; |
| 2465 } | 2465 } |
| 2466 | 2466 |
| 2467 } // namespace net | 2467 } // namespace net |
| OLD | NEW |