| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "media/cast/net/udp_transport.h" | 5 #include "media/cast/net/udp_transport.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/memory/ref_counted.h" | |
| 13 #include "base/memory/scoped_ptr.h" | |
| 14 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
| 15 #include "base/rand_util.h" | 13 #include "base/rand_util.h" |
| 16 #include "net/base/io_buffer.h" | 14 #include "net/base/io_buffer.h" |
| 17 #include "net/base/net_errors.h" | 15 #include "net/base/net_errors.h" |
| 18 #include "net/base/rand_callback.h" | 16 #include "net/base/rand_callback.h" |
| 19 | 17 |
| 20 namespace media { | 18 namespace media { |
| 21 namespace cast { | 19 namespace cast { |
| 22 | 20 |
| 23 namespace { | 21 namespace { |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 } | 260 } |
| 263 ScheduleReceiveNextPacket(); | 261 ScheduleReceiveNextPacket(); |
| 264 | 262 |
| 265 if (!cb.is_null()) { | 263 if (!cb.is_null()) { |
| 266 cb.Run(); | 264 cb.Run(); |
| 267 } | 265 } |
| 268 } | 266 } |
| 269 | 267 |
| 270 } // namespace cast | 268 } // namespace cast |
| 271 } // namespace media | 269 } // namespace media |
| OLD | NEW |