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

Unified Diff: content/child/socket_stream_dispatcher.h

Issue 655253006: Remove old WebSocket implementation from content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 years, 2 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 | « content/child/child_thread.cc ('k') | content/child/socket_stream_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/socket_stream_dispatcher.h
diff --git a/content/child/socket_stream_dispatcher.h b/content/child/socket_stream_dispatcher.h
deleted file mode 100644
index 25877f8cda0f81a3e5963e7e204f5e41a8217b1a..0000000000000000000000000000000000000000
--- a/content/child/socket_stream_dispatcher.h
+++ /dev/null
@@ -1,51 +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 CONTENT_CHILD_SOCKET_STREAM_DISPATCHER_H_
-#define CONTENT_CHILD_SOCKET_STREAM_DISPATCHER_H_
-
-#include <vector>
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "ipc/ipc_listener.h"
-
-namespace blink {
-class WebSocketStreamHandle;
-}
-
-namespace content {
-
-class WebSocketStreamHandleBridge;
-class WebSocketStreamHandleDelegate;
-
-// Dispatches socket stream related messages sent to a child process from the
-// main browser process. There is one instance per child process. Messages
-// are dispatched on the main child thread. The RenderThread class
-// creates an instance of SocketStreamDispatcher and delegates calls to it.
-class SocketStreamDispatcher : public IPC::Listener {
- public:
- SocketStreamDispatcher();
- ~SocketStreamDispatcher() override {}
-
- static WebSocketStreamHandleBridge* CreateBridge(
- blink::WebSocketStreamHandle* handle,
- WebSocketStreamHandleDelegate* delegate);
-
- // IPC::Listener implementation.
- bool OnMessageReceived(const IPC::Message& msg) override;
-
- private:
- void OnConnected(int socket_id, int max_amount_send_allowed);
- void OnSentData(int socket_id, int amount_sent);
- void OnReceivedData(int socket_id, const std::vector<char>& data);
- void OnClosed(int socket_id);
- void OnFailed(int socket_id, int error_code);
-
- DISALLOW_COPY_AND_ASSIGN(SocketStreamDispatcher);
-};
-
-} // namespace content
-
-#endif // CONTENT_CHILD_SOCKET_STREAM_DISPATCHER_H_
« no previous file with comments | « content/child/child_thread.cc ('k') | content/child/socket_stream_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698