| 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 "content/browser/renderer_host/p2p/socket_host.h" | 5 #include "content/browser/renderer_host/p2p/socket_host.h" |
| 6 | 6 |
| 7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram_macros.h" |
| 8 #include "base/sys_byteorder.h" | 8 #include "base/sys_byteorder.h" |
| 9 #include "content/browser/renderer_host/p2p/socket_host_tcp.h" | 9 #include "content/browser/renderer_host/p2p/socket_host_tcp.h" |
| 10 #include "content/browser/renderer_host/p2p/socket_host_tcp_server.h" | 10 #include "content/browser/renderer_host/p2p/socket_host_tcp_server.h" |
| 11 #include "content/browser/renderer_host/p2p/socket_host_udp.h" | 11 #include "content/browser/renderer_host/p2p/socket_host_udp.h" |
| 12 #include "content/browser/renderer_host/render_process_host_impl.h" | 12 #include "content/browser/renderer_host/render_process_host_impl.h" |
| 13 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
| 14 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
| 15 #include "third_party/webrtc/media/base/rtputils.h" | 15 #include "third_party/webrtc/media/base/rtputils.h" |
| 16 #include "third_party/webrtc/media/base/turnutils.h" | 16 #include "third_party/webrtc/media/base/turnutils.h" |
| 17 | 17 |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 send_bytes_delayed_max_ = send_bytes_delayed_cur_; | 314 send_bytes_delayed_max_ = send_bytes_delayed_cur_; |
| 315 } | 315 } |
| 316 } | 316 } |
| 317 | 317 |
| 318 void P2PSocketHost::DecrementDelayedBytes(uint32_t size) { | 318 void P2PSocketHost::DecrementDelayedBytes(uint32_t size) { |
| 319 send_bytes_delayed_cur_ -= size; | 319 send_bytes_delayed_cur_ -= size; |
| 320 DCHECK_GE(send_bytes_delayed_cur_, 0); | 320 DCHECK_GE(send_bytes_delayed_cur_, 0); |
| 321 } | 321 } |
| 322 | 322 |
| 323 } // namespace content | 323 } // namespace content |
| OLD | NEW |