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

Unified Diff: Source/modules/websockets/DOMWebSocket.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 side-by-side diff with in-line comments
Download patch
Index: Source/modules/websockets/DOMWebSocket.h
diff --git a/Source/modules/websockets/DOMWebSocket.h b/Source/modules/websockets/DOMWebSocket.h
index 48ab9660d0994b1606448c24f46c026832f6429f..7327ab18892a2b958d4486f028ab064c3d429c8c 100644
--- a/Source/modules/websockets/DOMWebSocket.h
+++ b/Source/modules/websockets/DOMWebSocket.h
@@ -89,7 +89,7 @@ public:
const KURL& url() const;
State readyState() const;
- unsigned long bufferedAmount() const;
+ unsigned bufferedAmount() const;
String protocol() const;
String extensions() const;
@@ -201,7 +201,7 @@ private:
// Updates m_bufferedAmountAfterClose given the amount of data passed to
// send() method after the state changed to CLOSING or CLOSED.
- void updateBufferedAmountAfterClose(unsigned long);
+ void updateBufferedAmountAfterClose(unsigned);
void reflectBufferedAmountConsumption(Timer<DOMWebSocket>*);
void releaseChannel();
@@ -215,11 +215,11 @@ private:
State m_state;
KURL m_url;
- unsigned long m_bufferedAmount;
+ unsigned m_bufferedAmount;
// The consumed buffered amount that will be reflected to m_bufferedAmount
// later. It will be cleared once reflected.
- unsigned long m_consumedBufferedAmount;
- unsigned long m_bufferedAmountAfterClose;
+ unsigned m_consumedBufferedAmount;
+ unsigned m_bufferedAmountAfterClose;
BinaryType m_binaryType;
// The subprotocol the server selected.
String m_subprotocol;
« no previous file with comments | « no previous file | Source/modules/websockets/DOMWebSocket.cpp » ('j') | Source/modules/websockets/DOMWebSocket.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698