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

Side by Side Diff: Source/modules/mediastream/RTCPeerConnection.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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 return; 609 return;
610 610
611 RefPtr<RTCDataChannel> channel = RTCDataChannel::create(executionContext(), handler); 611 RefPtr<RTCDataChannel> channel = RTCDataChannel::create(executionContext(), handler);
612 m_dataChannels.append(channel); 612 m_dataChannels.append(channel);
613 613
614 scheduleDispatchEvent(RTCDataChannelEvent::create(EventTypeNames::datachanne l, false, false, channel.release())); 614 scheduleDispatchEvent(RTCDataChannelEvent::create(EventTypeNames::datachanne l, false, false, channel.release()));
615 } 615 }
616 616
617 const AtomicString& RTCPeerConnection::interfaceName() const 617 const AtomicString& RTCPeerConnection::interfaceName() const
618 { 618 {
619 return eventNames().interfaceForRTCPeerConnection; 619 return EventTargetNames::RTCPeerConnection;
620 } 620 }
621 621
622 ExecutionContext* RTCPeerConnection::executionContext() const 622 ExecutionContext* RTCPeerConnection::executionContext() const
623 { 623 {
624 return ActiveDOMObject::executionContext(); 624 return ActiveDOMObject::executionContext();
625 } 625 }
626 626
627 void RTCPeerConnection::stop() 627 void RTCPeerConnection::stop()
628 { 628 {
629 if (m_stopped) 629 if (m_stopped)
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 events.swap(m_scheduledEvents); 676 events.swap(m_scheduledEvents);
677 677
678 Vector<RefPtr<Event> >::iterator it = events.begin(); 678 Vector<RefPtr<Event> >::iterator it = events.begin();
679 for (; it != events.end(); ++it) 679 for (; it != events.end(); ++it)
680 dispatchEvent((*it).release()); 680 dispatchEvent((*it).release());
681 681
682 events.clear(); 682 events.clear();
683 } 683 }
684 684
685 } // namespace WebCore 685 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/modules/mediastream/RTCIceCandidateEvent.cpp ('k') | Source/modules/notifications/Notification.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698