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

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

Issue 13776002: MediaStream should fire ended event when all tracks are ended (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: The patch is migrated from WebKit #bug 87336 Created 7 years, 8 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, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 185
186 Document* m_document; 186 Document* m_document;
187 WebSocketChannelClient* m_client; 187 WebSocketChannelClient* m_client;
188 OwnPtr<WebSocketHandshake> m_handshake; 188 OwnPtr<WebSocketHandshake> m_handshake;
189 RefPtr<SocketStreamHandle> m_handle; 189 RefPtr<SocketStreamHandle> m_handle;
190 Vector<char> m_buffer; 190 Vector<char> m_buffer;
191 191
192 Timer<WebSocketChannel> m_resumeTimer; 192 Timer<WebSocketChannel> m_resumeTimer;
193 bool m_suspended; 193 bool m_suspended;
194 bool m_closing; 194 bool m_closing;
195 bool m_failed;
195 bool m_receivedClosingHandshake; 196 bool m_receivedClosingHandshake;
196 Timer<WebSocketChannel> m_closingTimer; 197 Timer<WebSocketChannel> m_closingTimer;
197 bool m_closed; 198 bool m_closed;
198 bool m_shouldDiscardReceivedData; 199 bool m_shouldDiscardReceivedData;
199 unsigned long m_unhandledBufferedAmount; 200 unsigned long m_unhandledBufferedAmount;
200 201
201 unsigned long m_identifier; // m_identifier == 0 means that we could not obt ain a valid identifier. 202 unsigned long m_identifier; // m_identifier == 0 means that we could not obt ain a valid identifier.
202 203
203 // Private members only for hybi-10 protocol. 204 // Private members only for hybi-10 protocol.
204 bool m_hasContinuousFrame; 205 bool m_hasContinuousFrame;
205 WebSocketFrame::OpCode m_continuousFrameOpCode; 206 WebSocketFrame::OpCode m_continuousFrameOpCode;
206 Vector<char> m_continuousFrameData; 207 Vector<char> m_continuousFrameData;
207 unsigned short m_closeEventCode; 208 unsigned short m_closeEventCode;
208 String m_closeEventReason; 209 String m_closeEventReason;
209 210
210 Deque<OwnPtr<QueuedFrame> > m_outgoingFrameQueue; 211 Deque<OwnPtr<QueuedFrame> > m_outgoingFrameQueue;
211 OutgoingFrameQueueStatus m_outgoingFrameQueueStatus; 212 OutgoingFrameQueueStatus m_outgoingFrameQueueStatus;
212 213
213 // FIXME: Load two or more Blobs simultaneously for better performance. 214 // FIXME: Load two or more Blobs simultaneously for better performance.
214 OwnPtr<FileReaderLoader> m_blobLoader; 215 OwnPtr<FileReaderLoader> m_blobLoader;
215 BlobLoaderStatus m_blobLoaderStatus; 216 BlobLoaderStatus m_blobLoaderStatus;
216 217
217 WebSocketDeflateFramer m_deflateFramer; 218 WebSocketDeflateFramer m_deflateFramer;
218 }; 219 };
219 220
220 } // namespace WebCore 221 } // namespace WebCore
221 222
222 #endif // WebSocketChannel_h 223 #endif // WebSocketChannel_h
OLDNEW
« no previous file with comments | « Source/WebCore/platform/network/chromium/SocketStreamHandle.cpp ('k') | Source/modules/websockets/WebSocketChannel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698