| 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/shell/domain_socket/net_errors.h" | 5 #include "mojo/shell/domain_socket/net_errors.h" |
| 6 | 6 |
| 7 #include <errno.h> | 7 #include <errno.h> |
| 8 #include <stdlib.h> | 8 #include <stdlib.h> |
| 9 #if defined(OS_POSIX) |
| 9 #include <unistd.h> | 10 #include <unistd.h> |
| 11 #endif |
| 12 #if defined(OS_WIN) |
| 13 #include <winsock2.h> |
| 14 #define EDQUOT WSAEDQUOT |
| 15 #define EHOSTDOWN WSAEHOSTDOWN |
| 16 #define EUSERS WSAEUSERS |
| 17 #endif |
| 10 | 18 |
| 11 #include <string> | 19 #include <string> |
| 12 | 20 |
| 13 #include "base/basictypes.h" | 21 #include "base/basictypes.h" |
| 14 #include "base/files/file.h" | 22 #include "base/files/file.h" |
| 15 #include "base/logging.h" | 23 #include "base/logging.h" |
| 16 | 24 |
| 17 namespace mojo { | 25 namespace mojo { |
| 18 namespace shell { | 26 namespace shell { |
| 19 namespace net { | 27 namespace net { |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 default: | 159 default: |
| 152 LOG(WARNING) << "Unknown error " << os_error | 160 LOG(WARNING) << "Unknown error " << os_error |
| 153 << " mapped to net::ERR_FAILED"; | 161 << " mapped to net::ERR_FAILED"; |
| 154 return ERR_FAILED; | 162 return ERR_FAILED; |
| 155 } | 163 } |
| 156 } | 164 } |
| 157 | 165 |
| 158 } // namespace net | 166 } // namespace net |
| 159 } // namespace shell | 167 } // namespace shell |
| 160 } // namespace mojo | 168 } // namespace mojo |
| OLD | NEW |