| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright (C) 2011 Ericsson AB. All rights reserved. | 2  * Copyright (C) 2011 Ericsson AB. All rights reserved. | 
| 3  * Copyright (C) 2012 Google Inc. All rights reserved. | 3  * Copyright (C) 2012 Google Inc. 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  * | 8  * | 
| 9  * 1. Redistributions of source code must retain the above copyright | 9  * 1. Redistributions of source code must retain the above copyright | 
| 10  *    notice, this list of conditions and the following disclaimer. | 10  *    notice, this list of conditions and the following disclaimer. | 
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 57 | 57 | 
| 58 MediaStreamCenter::MediaStreamCenter() | 58 MediaStreamCenter::MediaStreamCenter() | 
| 59     : m_private(adoptPtr(blink::Platform::current()->createMediaStreamCenter(thi
     s))) | 59     : m_private(adoptPtr(blink::Platform::current()->createMediaStreamCenter(thi
     s))) | 
| 60 { | 60 { | 
| 61 } | 61 } | 
| 62 | 62 | 
| 63 MediaStreamCenter::~MediaStreamCenter() | 63 MediaStreamCenter::~MediaStreamCenter() | 
| 64 { | 64 { | 
| 65 } | 65 } | 
| 66 | 66 | 
| 67 bool MediaStreamCenter::getMediaStreamTrackSources(PassRefPtr<MediaStreamTrackSo
     urcesRequest> request) | 67 bool MediaStreamCenter::getMediaStreamTrackSources(PassRefPtrWillBeRawPtr<MediaS
     treamTrackSourcesRequest> request) | 
| 68 { | 68 { | 
| 69     return m_private && m_private->getMediaStreamTrackSources(request); | 69     return m_private && m_private->getMediaStreamTrackSources(request); | 
| 70 } | 70 } | 
| 71 | 71 | 
| 72 void MediaStreamCenter::didSetMediaStreamTrackEnabled(MediaStreamComponent* comp
     onent) | 72 void MediaStreamCenter::didSetMediaStreamTrackEnabled(MediaStreamComponent* comp
     onent) | 
| 73 { | 73 { | 
| 74     if (m_private) { | 74     if (m_private) { | 
| 75         if (component->enabled()) { | 75         if (component->enabled()) { | 
| 76             m_private->didEnableMediaStreamTrack(component); | 76             m_private->didEnableMediaStreamTrack(component); | 
| 77         } else { | 77         } else { | 
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 145 { | 145 { | 
| 146     MediaStreamDescriptor* stream = webStream; | 146     MediaStreamDescriptor* stream = webStream; | 
| 147     MediaStreamDescriptorClient* client = stream->client(); | 147     MediaStreamDescriptorClient* client = stream->client(); | 
| 148     if (client) | 148     if (client) | 
| 149         client->streamEnded(); | 149         client->streamEnded(); | 
| 150     else | 150     else | 
| 151         stream->setEnded(); | 151         stream->setEnded(); | 
| 152 } | 152 } | 
| 153 | 153 | 
| 154 } // namespace WebCore | 154 } // namespace WebCore | 
| OLD | NEW | 
|---|