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 "mojo/services/network/udp_socket_impl.h" | 5 #include "mojo/services/network/udp_socket_impl.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
7 #include <string.h> | 9 #include <string.h> |
8 #include <algorithm> | 10 #include <algorithm> |
9 #include <limits> | 11 #include <limits> |
10 #include <utility> | 12 #include <utility> |
11 | 13 |
12 #include "base/logging.h" | 14 #include "base/logging.h" |
13 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
14 #include "base/stl_util.h" | 16 #include "base/stl_util.h" |
15 #include "mojo/services/network/net_adapters.h" | 17 #include "mojo/services/network/net_adapters.h" |
16 #include "mojo/services/network/net_address_type_converters.h" | 18 #include "mojo/services/network/net_address_type_converters.h" |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 return; | 371 return; |
370 | 372 |
371 scoped_ptr<PendingSendRequest> request(pending_send_requests_.front()); | 373 scoped_ptr<PendingSendRequest> request(pending_send_requests_.front()); |
372 pending_send_requests_.pop_front(); | 374 pending_send_requests_.pop_front(); |
373 | 375 |
374 DoSendTo(std::move(request->addr), std::move(request->data), | 376 DoSendTo(std::move(request->addr), std::move(request->data), |
375 request->callback); | 377 request->callback); |
376 } | 378 } |
377 | 379 |
378 } // namespace mojo | 380 } // namespace mojo |
OLD | NEW |