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

Side by Side Diff: remoting/protocol/socket_util.cc

Issue 390983003: Remove remoting/jingle_glue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months 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 | Annotate | Revision Log
« no previous file with comments | « remoting/protocol/socket_util.h ('k') | remoting/remoting_nacl.gyp » ('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 "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
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
OLDNEW
« no previous file with comments | « remoting/protocol/socket_util.h ('k') | remoting/remoting_nacl.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698