| 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 "network/public/cpp/udp_socket_wrapper.h" | 5 #include "network/public/cpp/udp_socket_wrapper.h" |
| 6 | 6 |
| 7 #include <assert.h> | 7 #include <assert.h> |
| 8 | 8 |
| 9 #include "mojo/public/cpp/environment/logging.h" | 9 #include "third_party/mojo/src/mojo/public/cpp/environment/logging.h" |
| 10 | 10 |
| 11 namespace mojo { | 11 namespace mojo { |
| 12 namespace { | 12 namespace { |
| 13 | 13 |
| 14 const uint32_t kDefaultReceiveQueueSlots = 32; | 14 const uint32_t kDefaultReceiveQueueSlots = 32; |
| 15 | 15 |
| 16 } // namespace | 16 } // namespace |
| 17 | 17 |
| 18 UDPSocketWrapper::NegotiateCallbackHandler::NegotiateCallbackHandler( | 18 UDPSocketWrapper::NegotiateCallbackHandler::NegotiateCallbackHandler( |
| 19 UDPSocketWrapper* delegate) | 19 UDPSocketWrapper* delegate) |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 request->dest_addr.Pass(), request->data.Pass(), | 204 request->dest_addr.Pass(), request->data.Pass(), |
| 205 ErrorCallback(static_cast<ErrorCallback::Runnable*>( | 205 ErrorCallback(static_cast<ErrorCallback::Runnable*>( |
| 206 new SendCallbackHandler(this, request->callback)))); | 206 new SendCallbackHandler(this, request->callback)))); |
| 207 | 207 |
| 208 delete request; | 208 delete request; |
| 209 | 209 |
| 210 return true; | 210 return true; |
| 211 } | 211 } |
| 212 | 212 |
| 213 } // namespace mojo | 213 } // namespace mojo |
| OLD | NEW |