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

Side by Side Diff: Source/modules/websockets/WorkerWebSocketChannel.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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 void close(int code, const String& reason); 102 void close(int code, const String& reason);
103 void fail(const String& reason, MessageLevel, const String& sourceURL, u nsigned lineNumber); 103 void fail(const String& reason, MessageLevel, const String& sourceURL, u nsigned lineNumber);
104 void disconnect(); 104 void disconnect();
105 105
106 virtual void trace(Visitor*) override; 106 virtual void trace(Visitor*) override;
107 107
108 // WebSocketChannelClient functions. 108 // WebSocketChannelClient functions.
109 virtual void didConnect(const String& subprotocol, const String& extensi ons) override; 109 virtual void didConnect(const String& subprotocol, const String& extensi ons) override;
110 virtual void didReceiveTextMessage(const String& payload) override; 110 virtual void didReceiveTextMessage(const String& payload) override;
111 virtual void didReceiveBinaryMessage(PassOwnPtr<Vector<char> >) override ; 111 virtual void didReceiveBinaryMessage(PassOwnPtr<Vector<char> >) override ;
112 virtual void didConsumeBufferedAmount(unsigned long) override; 112 virtual void didConsumeBufferedAmount(unsigned) override;
113 virtual void didStartClosingHandshake() override; 113 virtual void didStartClosingHandshake() override;
114 virtual void didClose(ClosingHandshakeCompletionStatus, unsigned short c ode, const String& reason) override; 114 virtual void didClose(ClosingHandshakeCompletionStatus, unsigned short c ode, const String& reason) override;
115 virtual void didError() override; 115 virtual void didError() override;
116 116
117 private: 117 private:
118 void initializeInternal(ExecutionContext*, const String& sourceURLAtConn ection, unsigned lineNumberAtConnection); 118 void initializeInternal(ExecutionContext*, const String& sourceURLAtConn ection, unsigned lineNumberAtConnection);
119 119
120 Member<Bridge> m_bridge; 120 Member<Bridge> m_bridge;
121 WorkerLoaderProxy& m_loaderProxy; 121 WorkerLoaderProxy& m_loaderProxy;
122 Member<WebSocketChannel> m_mainWebSocketChannel; 122 Member<WebSocketChannel> m_mainWebSocketChannel;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 WorkerWebSocketChannel(WorkerGlobalScope&, WebSocketChannelClient*, const St ring& sourceURL, unsigned lineNumber); 161 WorkerWebSocketChannel(WorkerGlobalScope&, WebSocketChannelClient*, const St ring& sourceURL, unsigned lineNumber);
162 162
163 Member<Bridge> m_bridge; 163 Member<Bridge> m_bridge;
164 String m_sourceURLAtConnection; 164 String m_sourceURLAtConnection;
165 unsigned m_lineNumberAtConnection; 165 unsigned m_lineNumberAtConnection;
166 }; 166 };
167 167
168 } // namespace blink 168 } // namespace blink
169 169
170 #endif // WorkerWebSocketChannel_h 170 #endif // WorkerWebSocketChannel_h
OLDNEW
« no previous file with comments | « Source/modules/websockets/WebSocketChannelClient.h ('k') | Source/modules/websockets/WorkerWebSocketChannel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698