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

Side by Side Diff: third_party/WebKit/Source/modules/mediastream/MediaStream.cpp

Issue 1773813007: blink: Rename modules/ method to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-modules: rebase-fixes Created 4 years, 9 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 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * Copyright (C) 2011, 2012 Ericsson AB. All rights reserved. 3 * Copyright (C) 2011, 2012 Ericsson AB. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 { 305 {
306 ContextLifecycleObserver::contextDestroyed(); 306 ContextLifecycleObserver::contextDestroyed();
307 m_stopped = true; 307 m_stopped = true;
308 } 308 }
309 309
310 const AtomicString& MediaStream::interfaceName() const 310 const AtomicString& MediaStream::interfaceName() const
311 { 311 {
312 return EventTargetNames::MediaStream; 312 return EventTargetNames::MediaStream;
313 } 313 }
314 314
315 ExecutionContext* MediaStream::executionContext() const 315 ExecutionContext* MediaStream::getExecutionContext() const
316 { 316 {
317 return ContextLifecycleObserver::executionContext(); 317 return ContextLifecycleObserver::getExecutionContext();
318 } 318 }
319 319
320 void MediaStream::addRemoteTrack(MediaStreamComponent* component) 320 void MediaStream::addRemoteTrack(MediaStreamComponent* component)
321 { 321 {
322 ASSERT(component); 322 ASSERT(component);
323 if (m_stopped) 323 if (m_stopped)
324 return; 324 return;
325 325
326 MediaStreamTrack* track = MediaStreamTrack::create(executionContext(), compo nent); 326 MediaStreamTrack* track = MediaStreamTrack::create(getExecutionContext(), co mponent);
327 switch (component->source()->type()) { 327 switch (component->source()->type()) {
328 case MediaStreamSource::TypeAudio: 328 case MediaStreamSource::TypeAudio:
329 m_audioTracks.append(track); 329 m_audioTracks.append(track);
330 break; 330 break;
331 case MediaStreamSource::TypeVideo: 331 case MediaStreamSource::TypeVideo:
332 m_videoTracks.append(track); 332 m_videoTracks.append(track);
333 break; 333 break;
334 } 334 }
335 track->registerMediaStream(this); 335 track->registerMediaStream(this);
336 m_descriptor->addComponent(component); 336 m_descriptor->addComponent(component);
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 visitor->trace(m_audioTracks); 415 visitor->trace(m_audioTracks);
416 visitor->trace(m_videoTracks); 416 visitor->trace(m_videoTracks);
417 visitor->trace(m_descriptor); 417 visitor->trace(m_descriptor);
418 visitor->trace(m_scheduledEvents); 418 visitor->trace(m_scheduledEvents);
419 RefCountedGarbageCollectedEventTargetWithInlineData<MediaStream>::trace(visi tor); 419 RefCountedGarbageCollectedEventTargetWithInlineData<MediaStream>::trace(visi tor);
420 ContextLifecycleObserver::trace(visitor); 420 ContextLifecycleObserver::trace(visitor);
421 MediaStreamDescriptorClient::trace(visitor); 421 MediaStreamDescriptorClient::trace(visitor);
422 } 422 }
423 423
424 } // namespace blink 424 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698