OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 m_private.reset(); | 87 m_private.reset(); |
88 } | 88 } |
89 | 89 |
90 WebMediaStreamSource::operator MediaStreamSource*() const | 90 WebMediaStreamSource::operator MediaStreamSource*() const |
91 { | 91 { |
92 return m_private.get(); | 92 return m_private.get(); |
93 } | 93 } |
94 | 94 |
95 void WebMediaStreamSource::initialize(const WebString& id, Type type, const WebS
tring& name) | 95 void WebMediaStreamSource::initialize(const WebString& id, Type type, const WebS
tring& name) |
96 { | 96 { |
97 m_private = MediaStreamSource::create(id, static_cast<MediaStreamSource::Str
eamType>(type), name, false, true); | 97 m_private = MediaStreamSource::create(id, static_cast<MediaStreamSource::Str
eamType>(type), name, false); |
98 } | 98 } |
99 | 99 |
100 void WebMediaStreamSource::initialize(const WebString& id, Type type, const WebS
tring& name, bool remote, bool readonly) | 100 void WebMediaStreamSource::initialize(const WebString& id, Type type, const WebS
tring& name, bool remote) |
101 { | 101 { |
102 m_private = MediaStreamSource::create(id, static_cast<MediaStreamSource::Str
eamType>(type), name, remote, readonly); | 102 m_private = MediaStreamSource::create(id, static_cast<MediaStreamSource::Str
eamType>(type), name, remote); |
103 } | 103 } |
104 | 104 |
105 WebString WebMediaStreamSource::id() const | 105 WebString WebMediaStreamSource::id() const |
106 { | 106 { |
107 ASSERT(!m_private.isNull()); | 107 ASSERT(!m_private.isNull()); |
108 return m_private.get()->id(); | 108 return m_private.get()->id(); |
109 } | 109 } |
110 | 110 |
111 WebMediaStreamSource::Type WebMediaStreamSource::getType() const | 111 WebMediaStreamSource::Type WebMediaStreamSource::getType() const |
112 { | 112 { |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 ConsumerWrapper* wrapper = static_cast<ConsumerWrapper*>(it->get()); | 225 ConsumerWrapper* wrapper = static_cast<ConsumerWrapper*>(it->get()); |
226 if (wrapper->consumer() == consumer) { | 226 if (wrapper->consumer() == consumer) { |
227 m_private->removeAudioConsumer(wrapper); | 227 m_private->removeAudioConsumer(wrapper); |
228 return true; | 228 return true; |
229 } | 229 } |
230 } | 230 } |
231 return false; | 231 return false; |
232 } | 232 } |
233 | 233 |
234 } // namespace blink | 234 } // namespace blink |
OLD | NEW |