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

Side by Side Diff: Source/modules/mediastream/RTCDataChannel.cpp

Issue 26890003: Remove ThreadLocalEventNames (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix build Created 7 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 void RTCDataChannel::didDetectError() 254 void RTCDataChannel::didDetectError()
255 { 255 {
256 if (m_stopped) 256 if (m_stopped)
257 return; 257 return;
258 258
259 scheduleDispatchEvent(Event::create(EventTypeNames::error)); 259 scheduleDispatchEvent(Event::create(EventTypeNames::error));
260 } 260 }
261 261
262 const AtomicString& RTCDataChannel::interfaceName() const 262 const AtomicString& RTCDataChannel::interfaceName() const
263 { 263 {
264 return eventNames().interfaceForRTCDataChannel; 264 return EventTargetNames::RTCDataChannel;
265 } 265 }
266 266
267 ExecutionContext* RTCDataChannel::executionContext() const 267 ExecutionContext* RTCDataChannel::executionContext() const
268 { 268 {
269 return m_executionContext; 269 return m_executionContext;
270 } 270 }
271 271
272 void RTCDataChannel::stop() 272 void RTCDataChannel::stop()
273 { 273 {
274 m_stopped = true; 274 m_stopped = true;
(...skipping 19 matching lines...) Expand all
294 events.swap(m_scheduledEvents); 294 events.swap(m_scheduledEvents);
295 295
296 Vector<RefPtr<Event> >::iterator it = events.begin(); 296 Vector<RefPtr<Event> >::iterator it = events.begin();
297 for (; it != events.end(); ++it) 297 for (; it != events.end(); ++it)
298 dispatchEvent((*it).release()); 298 dispatchEvent((*it).release());
299 299
300 events.clear(); 300 events.clear();
301 } 301 }
302 302
303 } // namespace WebCore 303 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/modules/mediastream/RTCDTMFToneChangeEvent.cpp ('k') | Source/modules/mediastream/RTCDataChannelEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698