summaryrefslogtreecommitdiffstats
path: root/content/common/socket_stream_dispatcher.h
diff options
context:
space:
mode:
authorscottmg@chromium.org <scottmg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-06 20:08:03 +0000
committerscottmg@chromium.org <scottmg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-06 20:08:03 +0000
commit10208eaf1c2702844601449633caeda35edd46bf (patch)
tree1a4644a1392871bf9291fe004d615abaf2f5e0b8 /content/common/socket_stream_dispatcher.h
parent4ebc34469806cdfc7a9a11cd8e3a7a6b4fcf86df (diff)
downloadchromium_src-10208eaf1c2702844601449633caeda35edd46bf.zip
chromium_src-10208eaf1c2702844601449633caeda35edd46bf.tar.gz
chromium_src-10208eaf1c2702844601449633caeda35edd46bf.tar.bz2
Move a bunch of child-only code from content/common to content/child
Was just trying to move content/common/resource_dispatcher.{cc,h}, but that ends up needing a lot of other things to move. TBR=jam@chromium.org BUG=246357 Review URL: https://codereview.chromium.org/16328003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204569 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/socket_stream_dispatcher.h')
-rw-r--r--content/common/socket_stream_dispatcher.h53
1 files changed, 0 insertions, 53 deletions
diff --git a/content/common/socket_stream_dispatcher.h b/content/common/socket_stream_dispatcher.h
deleted file mode 100644
index b619623..0000000
--- a/content/common/socket_stream_dispatcher.h
+++ /dev/null
@@ -1,53 +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_COMMON_SOCKET_STREAM_DISPATCHER_H_
-#define CONTENT_COMMON_SOCKET_STREAM_DISPATCHER_H_
-
-#include <vector>
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "ipc/ipc_listener.h"
-
-namespace WebKit {
-class WebSocketStreamHandle;
-}
-
-namespace webkit_glue {
-class WebSocketStreamHandleBridge;
-class WebSocketStreamHandleDelegate;
-}
-
-namespace content {
-
-// 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();
- virtual ~SocketStreamDispatcher() {}
-
- static webkit_glue::WebSocketStreamHandleBridge* CreateBridge(
- WebKit::WebSocketStreamHandle* handle,
- webkit_glue::WebSocketStreamHandleDelegate* delegate);
-
- // IPC::Listener implementation.
- virtual 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_COMMON_SOCKET_STREAM_DISPATCHER_H_