1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set sw=2 ts=8 et tw=80 : */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4  * License, v. 2.0. If a copy of the MPL was not distributed with this
5  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 
7 #ifndef mozilla_net_WebSocketConnectionListener_h
8 #define mozilla_net_WebSocketConnectionListener_h
9 
10 namespace mozilla {
11 namespace net {
12 
13 class WebSocketConnectionListener : public nsISupports {
14  public:
15   virtual void OnError(nsresult aStatus) = 0;
16   virtual void OnTCPClosed() = 0;
17   virtual nsresult OnDataReceived(uint8_t* aData, uint32_t aCount) = 0;
18 };
19 
20 }  // namespace net
21 }  // namespace mozilla
22 
23 #endif  // mozilla_net_WebSocketConnectionListener_h
24