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

Unified Diff: trunk/Source/modules/websockets/WebSocketChannelClient.h

Issue 338243006: Revert 176298 "[WebSocket] bufferedAmount should not decrease in..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 years, 6 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
Index: trunk/Source/modules/websockets/WebSocketChannelClient.h
===================================================================
--- trunk/Source/modules/websockets/WebSocketChannelClient.h (revision 176310)
+++ trunk/Source/modules/websockets/WebSocketChannelClient.h (working copy)
@@ -37,25 +37,25 @@
namespace WebCore {
-class WebSocketChannelClient {
-public:
- virtual ~WebSocketChannelClient() { }
- virtual void didConnect(const String& subprotocol, const String& extensions) { }
- virtual void didReceiveMessage(const String&) { }
- virtual void didReceiveBinaryData(PassOwnPtr<Vector<char> >) { }
- virtual void didReceiveMessageError() { }
- virtual void didConsumeBufferedAmount(unsigned long consumed) { }
- virtual void didStartClosingHandshake() { }
- enum ClosingHandshakeCompletionStatus {
- ClosingHandshakeIncomplete,
- ClosingHandshakeComplete
+ class WebSocketChannelClient {
+ public:
+ virtual ~WebSocketChannelClient() { }
+ virtual void didConnect(const String& subprotocol, const String& extensions) { }
+ virtual void didReceiveMessage(const String&) { }
+ virtual void didReceiveBinaryData(PassOwnPtr<Vector<char> >) { }
+ virtual void didReceiveMessageError() { }
+ virtual void didUpdateBufferedAmount(unsigned long /* bufferedAmount */) { }
+ virtual void didStartClosingHandshake() { }
+ enum ClosingHandshakeCompletionStatus {
+ ClosingHandshakeIncomplete,
+ ClosingHandshakeComplete
+ };
+ virtual void didClose(unsigned long /* unhandledBufferedAmount */, ClosingHandshakeCompletionStatus, unsigned short /* code */, const String& /* reason */) { }
+
+ protected:
+ WebSocketChannelClient() { }
};
- virtual void didClose(ClosingHandshakeCompletionStatus, unsigned short /* code */, const String& /* reason */) { }
-protected:
- WebSocketChannelClient() { }
-};
-
} // namespace WebCore
#endif // WebSocketChannelClient_h
« no previous file with comments | « trunk/Source/modules/websockets/WebSocketChannel.h ('k') | trunk/Source/modules/websockets/WebSocketTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698