| 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 "remoting/jingle_glue/socket_util.h" | 5 #include "remoting/protocol/socket_util.h" |
| 6 | 6 |
| 7 #include "net/base/net_errors.h" | 7 #include "net/base/net_errors.h" |
| 8 | 8 |
| 9 namespace remoting { | 9 namespace remoting { |
| 10 | 10 |
| 11 SocketErrorAction GetSocketErrorAction(int error) { | 11 SocketErrorAction GetSocketErrorAction(int error) { |
| 12 switch (error) { | 12 switch (error) { |
| 13 // UDP is connectionless, so we may receive ICMP unreachable or reset errors | 13 // UDP is connectionless, so we may receive ICMP unreachable or reset errors |
| 14 // for previous sends to different addresses. | 14 // for previous sends to different addresses. |
| 15 case net::ERR_ADDRESS_UNREACHABLE: | 15 case net::ERR_ADDRESS_UNREACHABLE: |
| (...skipping 17 matching lines...) Expand all Loading... |
| 33 case net::ERR_OUT_OF_MEMORY: | 33 case net::ERR_OUT_OF_MEMORY: |
| 34 return SOCKET_ERROR_ACTION_IGNORE; | 34 return SOCKET_ERROR_ACTION_IGNORE; |
| 35 | 35 |
| 36 default: | 36 default: |
| 37 return SOCKET_ERROR_ACTION_FAIL; | 37 return SOCKET_ERROR_ACTION_FAIL; |
| 38 } | 38 } |
| 39 } | 39 } |
| 40 | 40 |
| 41 | 41 |
| 42 } // namespace remoting | 42 } // namespace remoting |
| OLD | NEW |