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

Side by Side Diff: Source/WebKit/chromium/src/WebMediaPlayerClientImpl.h

Issue 15077011: Add safety when the .src attribute of an <audio> or <video> element is changed and it's used with t… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: don't call WebAudioSourceProvider::provideInput() if client is not set Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/WebKit/chromium/src/WebMediaPlayerClientImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 // Wraps the given WebAudioSourceProvider. 224 // Wraps the given WebAudioSourceProvider.
225 void wrap(WebAudioSourceProvider*); 225 void wrap(WebAudioSourceProvider*);
226 226
227 // WebCore::AudioSourceProvider 227 // WebCore::AudioSourceProvider
228 virtual void setClient(WebCore::AudioSourceProviderClient*); 228 virtual void setClient(WebCore::AudioSourceProviderClient*);
229 virtual void provideInput(WebCore::AudioBus*, size_t framesToProcess); 229 virtual void provideInput(WebCore::AudioBus*, size_t framesToProcess);
230 230
231 private: 231 private:
232 WebAudioSourceProvider* m_webAudioSourceProvider; 232 WebAudioSourceProvider* m_webAudioSourceProvider;
233 OwnPtr<AudioClientImpl> m_client; 233 OwnPtr<AudioClientImpl> m_client;
234 Mutex provideInputLock;
234 }; 235 };
235 236
236 AudioSourceProviderImpl m_audioSourceProvider; 237 AudioSourceProviderImpl m_audioSourceProvider;
237 #endif 238 #endif
238 239
239 RefPtr<WebCore::MediaSource> m_mediaSource; 240 RefPtr<WebCore::MediaSource> m_mediaSource;
240 }; 241 };
241 242
242 } // namespace WebKit 243 } // namespace WebKit
243 244
244 #endif 245 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/WebKit/chromium/src/WebMediaPlayerClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698