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

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

Issue 1666893003: [ABANDONED] WebSocket Blob receive in the browser process: renderer changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@websocket_blob_receive_host_merged
Patch Set: Created 4 years, 10 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
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 22 matching lines...) Expand all
33 33
34 #include "modules/ModulesExport.h" 34 #include "modules/ModulesExport.h"
35 #include "platform/heap/Handle.h" 35 #include "platform/heap/Handle.h"
36 #include "wtf/Forward.h" 36 #include "wtf/Forward.h"
37 #include "wtf/PassOwnPtr.h" 37 #include "wtf/PassOwnPtr.h"
38 #include "wtf/Vector.h" 38 #include "wtf/Vector.h"
39 #include <stdint.h> 39 #include <stdint.h>
40 40
41 namespace blink { 41 namespace blink {
42 42
43 class BlobDataHandle;
44
43 class MODULES_EXPORT WebSocketChannelClient : public GarbageCollectedMixin { 45 class MODULES_EXPORT WebSocketChannelClient : public GarbageCollectedMixin {
44 public: 46 public:
45 virtual ~WebSocketChannelClient() { } 47 virtual ~WebSocketChannelClient() { }
46 virtual void didConnect(const String& subprotocol, const String& extensions) { } 48 virtual void didConnect(const String& subprotocol, const String& extensions) { }
47 virtual void didReceiveTextMessage(const String&) { } 49 virtual void didReceiveTextMessage(const String&) { }
48 virtual void didReceiveBinaryMessage(PassOwnPtr<Vector<char>>) { } 50 virtual void didReceiveArrayBuffer(PassOwnPtr<Vector<char>>) { }
51 virtual void didReceiveBlob(PassRefPtr<BlobDataHandle>) { }
49 virtual void didError() { } 52 virtual void didError() { }
50 virtual void didConsumeBufferedAmount(uint64_t consumed) { } 53 virtual void didConsumeBufferedAmount(uint64_t consumed) { }
51 virtual void didStartClosingHandshake() { } 54 virtual void didStartClosingHandshake() { }
52 enum ClosingHandshakeCompletionStatus { 55 enum ClosingHandshakeCompletionStatus {
53 ClosingHandshakeIncomplete, 56 ClosingHandshakeIncomplete,
54 ClosingHandshakeComplete 57 ClosingHandshakeComplete
55 }; 58 };
56 virtual void didClose(ClosingHandshakeCompletionStatus, unsigned short /* co de */, const String& /* reason */) { } 59 virtual void didClose(ClosingHandshakeCompletionStatus, unsigned short /* co de */, const String& /* reason */) { }
57 DEFINE_INLINE_VIRTUAL_TRACE() { } 60 DEFINE_INLINE_VIRTUAL_TRACE() { }
58 61
59 protected: 62 protected:
60 WebSocketChannelClient() { } 63 WebSocketChannelClient() { }
61 }; 64 };
62 65
63 } // namespace blink 66 } // namespace blink
64 67
65 #endif // WebSocketChannelClient_h 68 #endif // WebSocketChannelClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698