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

Unified Diff: media/base/android/webaudio_media_codec_bridge.h

Issue 1372203002: Throttle media decoding after excessive Android media server crashes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: new infobar text per UI review Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/android/video_decoder_job.cc ('k') | media/base/android/webaudio_media_codec_bridge.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/android/webaudio_media_codec_bridge.h
diff --git a/media/base/android/webaudio_media_codec_bridge.h b/media/base/android/webaudio_media_codec_bridge.h
index fda612683fc6bdc8dc0cd8953f39c361f2594262..1585c4cee76788129f9a9cd342e7b0495872adef 100644
--- a/media/base/android/webaudio_media_codec_bridge.h
+++ b/media/base/android/webaudio_media_codec_bridge.h
@@ -7,6 +7,7 @@
#include <jni.h>
+#include "base/callback.h"
#include "base/file_descriptor_posix.h"
#include "base/memory/shared_memory.h"
#include "media/base/media_export.h"
@@ -36,7 +37,8 @@ class MEDIA_EXPORT WebAudioMediaCodecBridge {
static void RunWebAudioMediaCodec(
base::SharedMemoryHandle encoded_audio_handle,
base::FileDescriptor pcm_output,
- uint32_t data_size);
+ uint32_t data_size,
+ base::Closure on_decode_finished_cb);
void OnChunkDecoded(JNIEnv* env,
jobject /*java object*/,
« no previous file with comments | « media/base/android/video_decoder_job.cc ('k') | media/base/android/webaudio_media_codec_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698