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

Unified Diff: Source/modules/websockets/DocumentWebSocketChannel.h

Issue 711763002: bindings: Transition from ArrayBuffer to DOMArrayBuffer, part 2 (2nd round) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixes Win x64 build. 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 side-by-side diff with in-line comments
Download patch
Index: Source/modules/websockets/DocumentWebSocketChannel.h
diff --git a/Source/modules/websockets/DocumentWebSocketChannel.h b/Source/modules/websockets/DocumentWebSocketChannel.h
index 4b5f38f71c8908b6ee14139d1a1cc99eceb4d2d1..6b5b64fc3835c48e17dc5b99cd25d1eda3109185 100644
--- a/Source/modules/websockets/DocumentWebSocketChannel.h
+++ b/Source/modules/websockets/DocumentWebSocketChannel.h
@@ -39,7 +39,6 @@
#include "platform/weborigin/KURL.h"
#include "public/platform/WebSocketHandle.h"
#include "public/platform/WebSocketHandleClient.h"
-#include "wtf/ArrayBuffer.h"
#include "wtf/Deque.h"
#include "wtf/FastAllocBase.h"
#include "wtf/OwnPtr.h"
@@ -75,7 +74,7 @@ public:
// WebSocketChannel functions.
virtual bool connect(const KURL&, const String& protocol) override;
virtual void send(const String& message) override;
- virtual void send(const ArrayBuffer&, unsigned byteOffset, unsigned byteLength) override;
+ virtual void send(const DOMArrayBuffer&, unsigned byteOffset, unsigned byteLength) override;
virtual void send(PassRefPtr<BlobDataHandle>) override;
virtual void send(PassOwnPtr<Vector<char> > data) override;
// Start closing handshake. Use the CloseEventCodeNotSpecified for the code
@@ -101,7 +100,7 @@ private:
struct Message {
explicit Message(const String&);
explicit Message(PassRefPtr<BlobDataHandle>);
- explicit Message(PassRefPtr<ArrayBuffer>);
+ explicit Message(PassRefPtr<DOMArrayBuffer>);
explicit Message(PassOwnPtr<Vector<char> >);
Message(unsigned short code, const String& reason);
@@ -109,7 +108,7 @@ private:
CString text;
RefPtr<BlobDataHandle> blobDataHandle;
- RefPtr<ArrayBuffer> arrayBuffer;
+ RefPtr<DOMArrayBuffer> arrayBuffer;
OwnPtr<Vector<char> > vectorData;
unsigned short code;
String reason;
@@ -141,7 +140,7 @@ private:
virtual void didStartClosingHandshake(WebSocketHandle*) override;
// Methods for BlobLoader.
- void didFinishLoadingBlob(PassRefPtr<ArrayBuffer>);
+ void didFinishLoadingBlob(PassRefPtr<DOMArrayBuffer>);
void didFailLoadingBlob(FileError::ErrorCode);
// LifecycleObserver functions.
« no previous file with comments | « Source/modules/websockets/DOMWebSocketTest.cpp ('k') | Source/modules/websockets/DocumentWebSocketChannel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698