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

Unified Diff: net/server/web_socket.h

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/server/http_server_unittest.cc ('k') | net/server/web_socket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/server/web_socket.h
diff --git a/net/server/web_socket.h b/net/server/web_socket.h
deleted file mode 100644
index 3f2c1d8759f7998a9c3a7c28d3eda4b65c496719..0000000000000000000000000000000000000000
--- a/net/server/web_socket.h
+++ /dev/null
@@ -1,50 +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.
-
-#ifndef NET_SERVER_WEB_SOCKET_H_
-#define NET_SERVER_WEB_SOCKET_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/strings/string_piece.h"
-
-namespace net {
-
-class HttpConnection;
-class HttpServer;
-class HttpServerRequestInfo;
-
-class WebSocket {
- public:
- enum ParseResult {
- FRAME_OK,
- FRAME_INCOMPLETE,
- FRAME_CLOSE,
- FRAME_ERROR
- };
-
- static WebSocket* CreateWebSocket(HttpServer* server,
- HttpConnection* connection,
- const HttpServerRequestInfo& request,
- size_t* pos);
-
- virtual void Accept(const HttpServerRequestInfo& request) = 0;
- virtual ParseResult Read(std::string* message) = 0;
- virtual void Send(const std::string& message) = 0;
- virtual ~WebSocket();
-
- protected:
- WebSocket(HttpServer* server, HttpConnection* connection);
-
- HttpServer* const server_;
- HttpConnection* const connection_;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(WebSocket);
-};
-
-} // namespace net
-
-#endif // NET_SERVER_WEB_SOCKET_H_
« no previous file with comments | « net/server/http_server_unittest.cc ('k') | net/server/web_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698