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

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

Issue 403013002: Rename WebCore to blink in Modules (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
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 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #ifndef WebSocketChannelClient_h 31 #ifndef WebSocketChannelClient_h
32 #define WebSocketChannelClient_h 32 #define WebSocketChannelClient_h
33 33
34 #include "platform/heap/Handle.h" 34 #include "platform/heap/Handle.h"
35 #include "wtf/Forward.h" 35 #include "wtf/Forward.h"
36 #include "wtf/PassOwnPtr.h" 36 #include "wtf/PassOwnPtr.h"
37 #include "wtf/Vector.h" 37 #include "wtf/Vector.h"
38 38
39 namespace WebCore { 39 namespace blink {
40 40
41 class WebSocketChannelClient : public WillBeGarbageCollectedMixin { 41 class WebSocketChannelClient : public WillBeGarbageCollectedMixin {
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 didReceiveMessage(const String&) { } 45 virtual void didReceiveMessage(const String&) { }
46 virtual void didReceiveBinaryData(PassOwnPtr<Vector<char> >) { } 46 virtual void didReceiveBinaryData(PassOwnPtr<Vector<char> >) { }
47 virtual void didReceiveMessageError() { } 47 virtual void didReceiveMessageError() { }
48 virtual void didConsumeBufferedAmount(unsigned long consumed) { } 48 virtual void didConsumeBufferedAmount(unsigned long 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 WebCore 61 } // namespace blink
62 62
63 #endif // WebSocketChannelClient_h 63 #endif // WebSocketChannelClient_h
OLDNEW
« no previous file with comments | « Source/modules/websockets/WebSocketChannel.cpp ('k') | Source/modules/websockets/WebSocketDeflateFramer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698