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

Unified Diff: net/websockets/websocket_errors.cc

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/websockets/websocket_errors.h ('k') | net/websockets/websocket_errors_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/websockets/websocket_errors.cc
diff --git a/net/websockets/websocket_errors.cc b/net/websockets/websocket_errors.cc
deleted file mode 100644
index b7ca7bc563679a4f15aa94fe44a29a3da458af56..0000000000000000000000000000000000000000
--- a/net/websockets/websocket_errors.cc
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "net/websockets/websocket_errors.h"
-
-#include "base/logging.h"
-
-namespace net {
-
-Error WebSocketErrorToNetError(WebSocketError error) {
- switch (error) {
- case kWebSocketNormalClosure:
- return OK;
-
- case kWebSocketErrorGoingAway: // TODO(ricea): More specific code?
- case kWebSocketErrorProtocolError:
- case kWebSocketErrorUnsupportedData:
- case kWebSocketErrorInvalidFramePayloadData:
- case kWebSocketErrorPolicyViolation:
- case kWebSocketErrorMandatoryExtension:
- case kWebSocketErrorInternalServerError:
- return ERR_WS_PROTOCOL_ERROR;
-
- case kWebSocketErrorNoStatusReceived:
- case kWebSocketErrorAbnormalClosure:
- return ERR_CONNECTION_CLOSED;
-
- case kWebSocketErrorTlsHandshake:
- // This error will probably be reported with more detail at a lower layer;
- // this is the best we can do at this layer.
- return ERR_SSL_PROTOCOL_ERROR;
-
- case kWebSocketErrorMessageTooBig:
- return ERR_MSG_TOO_BIG;
-
- default:
- return ERR_UNEXPECTED;
- }
-}
-
-} // namespace net
« no previous file with comments | « net/websockets/websocket_errors.h ('k') | net/websockets/websocket_errors_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698