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

Side by Side Diff: Source/modules/websockets/WebSocketChannelClient.h

Issue 735433002: DOMWebSocket::bufferedAmount() should not return an "unsigned long" (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 27 matching lines...) Expand all
38 38
39 namespace blink { 39 namespace blink {
40 40
41 class WebSocketChannelClient : public GarbageCollectedMixin { 41 class WebSocketChannelClient : public GarbageCollectedMixin {
42 public: 42 public:
43 virtual ~WebSocketChannelClient() { } 43 virtual ~WebSocketChannelClient() { }
44 virtual void didConnect(const String& subprotocol, const String& extensions) { } 44 virtual void didConnect(const String& subprotocol, const String& extensions) { }
45 virtual void didReceiveTextMessage(const String&) { } 45 virtual void didReceiveTextMessage(const String&) { }
46 virtual void didReceiveBinaryMessage(PassOwnPtr<Vector<char> >) { } 46 virtual void didReceiveBinaryMessage(PassOwnPtr<Vector<char> >) { }
47 virtual void didError() { } 47 virtual void didError() { }
48 virtual void didConsumeBufferedAmount(unsigned long consumed) { } 48 virtual void didConsumeBufferedAmount(unsigned consumed) { }
49 virtual void didStartClosingHandshake() { } 49 virtual void didStartClosingHandshake() { }
50 enum ClosingHandshakeCompletionStatus { 50 enum ClosingHandshakeCompletionStatus {
51 ClosingHandshakeIncomplete, 51 ClosingHandshakeIncomplete,
52 ClosingHandshakeComplete 52 ClosingHandshakeComplete
53 }; 53 };
54 virtual void didClose(ClosingHandshakeCompletionStatus, unsigned short /* co de */, const String& /* reason */) { } 54 virtual void didClose(ClosingHandshakeCompletionStatus, unsigned short /* co de */, const String& /* reason */) { }
55 virtual void trace(Visitor*) { } 55 virtual void trace(Visitor*) { }
56 56
57 protected: 57 protected:
58 WebSocketChannelClient() { } 58 WebSocketChannelClient() { }
59 }; 59 };
60 60
61 } // namespace blink 61 } // namespace blink
62 62
63 #endif // WebSocketChannelClient_h 63 #endif // WebSocketChannelClient_h
OLDNEW
« no previous file with comments | « Source/modules/websockets/DocumentWebSocketChannelTest.cpp ('k') | Source/modules/websockets/WorkerWebSocketChannel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698