| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 WebMediaStream webStream(stream); | 108 WebMediaStream webStream(stream); |
| 109 m_private->didCreateMediaStream(webStream); | 109 m_private->didCreateMediaStream(webStream); |
| 110 } | 110 } |
| 111 } | 111 } |
| 112 | 112 |
| 113 void MediaStreamCenter::didCreateMediaStreamTrack(MediaStreamComponent* track) { | 113 void MediaStreamCenter::didCreateMediaStreamTrack(MediaStreamComponent* track) { |
| 114 if (m_private) | 114 if (m_private) |
| 115 m_private->didCreateMediaStreamTrack(track); | 115 m_private->didCreateMediaStreamTrack(track); |
| 116 } | 116 } |
| 117 | 117 |
| 118 void MediaStreamCenter::didSetContentHint(MediaStreamComponent* track) { |
| 119 if (m_private) |
| 120 m_private->didSetContentHint(track); |
| 121 } |
| 122 |
| 118 std::unique_ptr<AudioSourceProvider> | 123 std::unique_ptr<AudioSourceProvider> |
| 119 MediaStreamCenter::createWebAudioSourceFromMediaStreamTrack( | 124 MediaStreamCenter::createWebAudioSourceFromMediaStreamTrack( |
| 120 MediaStreamComponent* track) { | 125 MediaStreamComponent* track) { |
| 121 DCHECK(track); | 126 DCHECK(track); |
| 122 if (m_private) | 127 if (m_private) |
| 123 return MediaStreamWebAudioSource::create( | 128 return MediaStreamWebAudioSource::create( |
| 124 wrapUnique(m_private->createWebAudioSourceFromMediaStreamTrack(track))); | 129 wrapUnique(m_private->createWebAudioSourceFromMediaStreamTrack(track))); |
| 125 | 130 |
| 126 return nullptr; | 131 return nullptr; |
| 127 } | 132 } |
| 128 | 133 |
| 129 void MediaStreamCenter::stopLocalMediaStream(const WebMediaStream& webStream) { | 134 void MediaStreamCenter::stopLocalMediaStream(const WebMediaStream& webStream) { |
| 130 MediaStreamDescriptor* stream = webStream; | 135 MediaStreamDescriptor* stream = webStream; |
| 131 MediaStreamDescriptorClient* client = stream->client(); | 136 MediaStreamDescriptorClient* client = stream->client(); |
| 132 if (client) | 137 if (client) |
| 133 client->streamEnded(); | 138 client->streamEnded(); |
| 134 } | 139 } |
| 135 | 140 |
| 136 } // namespace blink | 141 } // namespace blink |
| OLD | NEW |