diff options
author | tyoshino@chromium.org <tyoshino@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-21 09:05:10 +0000 |
---|---|---|
committer | tyoshino@chromium.org <tyoshino@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-21 09:05:10 +0000 |
commit | d24a847aaee5e42d0eaf493a3c034626c8e551e3 (patch) | |
tree | bb5cc37bc31af6bd3b65166d1ac9fb3d0dfed81a /content/browser/renderer_host/websocket_host.h | |
parent | ef3f80bc931bc175a9a420109bb9b65c3f413097 (diff) | |
download | chromium_src-d24a847aaee5e42d0eaf493a3c034626c8e551e3.zip chromium_src-d24a847aaee5e42d0eaf493a3c034626c8e551e3.tar.gz chromium_src-d24a847aaee5e42d0eaf493a3c034626c8e551e3.tar.bz2 |
Add a unittest to WebSocketDispatcherHost class.
BUG=307807
Review URL: https://codereview.chromium.org/27137005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229763 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/renderer_host/websocket_host.h')
-rw-r--r-- | content/browser/renderer_host/websocket_host.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/content/browser/renderer_host/websocket_host.h b/content/browser/renderer_host/websocket_host.h index e2b7d12..06f82f7 100644 --- a/content/browser/renderer_host/websocket_host.h +++ b/content/browser/renderer_host/websocket_host.h @@ -9,6 +9,7 @@ #include <vector> #include "base/memory/scoped_ptr.h" +#include "content/common/content_export.h" #include "content/common/websocket.h" class GURL; @@ -28,16 +29,17 @@ class WebSocketDispatcherHost; // Host of WebSocketChannel. The lifetime of an instance of this class is // completely controlled by the WebSocketDispatcherHost. -class WebSocketHost { +class CONTENT_EXPORT WebSocketHost { public: WebSocketHost(int routing_id, WebSocketDispatcherHost* dispatcher, net::URLRequestContext* url_request_context); - ~WebSocketHost(); + virtual ~WebSocketHost(); // General message dispatch. WebSocketDispatcherHost::OnMessageReceived // delegates to this method after looking up the |routing_id|. - bool OnMessageReceived(const IPC::Message& message, bool* message_was_ok); + virtual bool OnMessageReceived(const IPC::Message& message, + bool* message_was_ok); private: // Handlers for each message type, dispatched by OnMessageReceived(), as |