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

Side by Side Diff: third_party/WebKit/Source/platform/exported/WebMediaStreamTrack.cpp

Issue 1557363002: Remove the WEB_AUDIO compile time flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 } 111 }
112 112
113 void WebMediaStreamTrack::setExtraData(ExtraData* extraData) 113 void WebMediaStreamTrack::setExtraData(ExtraData* extraData)
114 { 114 {
115 ASSERT(!m_private.isNull()); 115 ASSERT(!m_private.isNull());
116 116
117 m_private->setExtraData(adoptPtr(new ExtraDataContainer(adoptPtr(extraData)) )); 117 m_private->setExtraData(adoptPtr(new ExtraDataContainer(adoptPtr(extraData)) ));
118 } 118 }
119 119
120 void WebMediaStreamTrack::setSourceProvider(WebAudioSourceProvider* provider) 120 void WebMediaStreamTrack::setSourceProvider(WebAudioSourceProvider* provider)
121 { 121 { ASSERT(!m_private.isNull());
122 #if ENABLE(WEB_AUDIO)
123 ASSERT(!m_private.isNull());
124 m_private->setSourceProvider(provider); 122 m_private->setSourceProvider(provider);
125 #endif // ENABLE(WEB_AUDIO)
126 } 123 }
127 124
128 void WebMediaStreamTrack::assign(const WebMediaStreamTrack& other) 125 void WebMediaStreamTrack::assign(const WebMediaStreamTrack& other)
129 { 126 {
130 m_private = other.m_private; 127 m_private = other.m_private;
131 } 128 }
132 129
133 } // namespace blink 130 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698