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

Side by Side Diff: Source/modules/websockets/DOMWebSocket.cpp

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/modules/websockets/CloseEvent.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 , m_state(CONNECTING) 228 , m_state(CONNECTING)
229 , m_bufferedAmount(0) 229 , m_bufferedAmount(0)
230 , m_consumedBufferedAmount(0) 230 , m_consumedBufferedAmount(0)
231 , m_bufferedAmountAfterClose(0) 231 , m_bufferedAmountAfterClose(0)
232 , m_binaryType(BinaryTypeBlob) 232 , m_binaryType(BinaryTypeBlob)
233 , m_subprotocol("") 233 , m_subprotocol("")
234 , m_extensions("") 234 , m_extensions("")
235 , m_eventQueue(EventQueue::create(this)) 235 , m_eventQueue(EventQueue::create(this))
236 , m_bufferedAmountConsumeTimer(this, &DOMWebSocket::reflectBufferedAmountCon sumption) 236 , m_bufferedAmountConsumeTimer(this, &DOMWebSocket::reflectBufferedAmountCon sumption)
237 { 237 {
238 ScriptWrappable::init(this);
239 } 238 }
240 239
241 DOMWebSocket::~DOMWebSocket() 240 DOMWebSocket::~DOMWebSocket()
242 { 241 {
243 ASSERT(!m_channel); 242 ASSERT(!m_channel);
244 } 243 }
245 244
246 void DOMWebSocket::logError(const String& message) 245 void DOMWebSocket::logError(const String& message)
247 { 246 {
248 executionContext()->addConsoleMessage(ConsoleMessage::create(JSMessageSource , ErrorMessageLevel, message)); 247 executionContext()->addConsoleMessage(ConsoleMessage::create(JSMessageSource , ErrorMessageLevel, message));
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 687
689 void DOMWebSocket::trace(Visitor* visitor) 688 void DOMWebSocket::trace(Visitor* visitor)
690 { 689 {
691 visitor->trace(m_channel); 690 visitor->trace(m_channel);
692 visitor->trace(m_eventQueue); 691 visitor->trace(m_eventQueue);
693 WebSocketChannelClient::trace(visitor); 692 WebSocketChannelClient::trace(visitor);
694 EventTargetWithInlineData::trace(visitor); 693 EventTargetWithInlineData::trace(visitor);
695 } 694 }
696 695
697 } // namespace blink 696 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/websockets/CloseEvent.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698