// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef NET_WEBSOCKETS_WEBSOCKET_ERRORS_H_ #define NET_WEBSOCKETS_WEBSOCKET_ERRORS_H_ #include "net/base/net_errors.h" #include "net/base/net_export.h" namespace net { // Reason codes used with close messages. NoStatusReceived, // AbnormalClosure and TlsHandshake are special in that they // should never be sent on the wire; they are only used within the // implementation. enum WebSocketError { … }; // Convert WebSocketError to net::Error defined in net/base/net_errors.h. NET_EXPORT_PRIVATE Error WebSocketErrorToNetError(WebSocketError error); } // namespace net #endif // NET_WEBSOCKETS_WEBSOCKET_ERRORS_H_