Move data_reduction_proxy_enabled pref to profile_impl_io_data.
[chromium-blink-merge.git] / remoting / protocol / socket_util.h
blob1f9fff54dfdb61e27568cb9ffbea3a6dd074962e
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
3 // found in the LICENSE file.
5 #ifndef REMOTING_PROTOCOL_SOCKET_UTIL_H_
6 #define REMOTING_PROTOCOL_SOCKET_UTIL_H_
8 namespace remoting {
10 // Enum for different actions that can be taken after sendto() returns an error.
11 enum SocketErrorAction {
12 SOCKET_ERROR_ACTION_FAIL,
13 SOCKET_ERROR_ACTION_IGNORE,
14 SOCKET_ERROR_ACTION_RETRY,
17 // Returns true if |error| must be ignored when returned from sendto(). |retry|
18 // is set set when sentto() should be called for the same packet again.
19 SocketErrorAction GetSocketErrorAction(int error);
21 } // namespace remoting
23 #endif // REMOTING_PROTOCOL_SOCKET_UTIL_H_