Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Side by Side Diff: mojo/shell/domain_socket/net_errors.cc

Issue 700763002: More Windows build fixes, some tidying in mojo_main (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: reland: fix sense in mojo/shell Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/shell/desktop/mojo_main.cc ('k') | mojo/shell/incoming_connection_listener_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « mojo/shell/desktop/mojo_main.cc ('k') | mojo/shell/incoming_connection_listener_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698