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

Unified Diff: chromecast/media/cma/pipeline/av_pipeline_impl.h

Issue 2361103002: [Chromecast] Make sure that Stop() stops buffer decryption (Closed)
Patch Set: fix formatting Created 4 years, 3 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 | « no previous file | chromecast/media/cma/pipeline/av_pipeline_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/media/cma/pipeline/av_pipeline_impl.h
diff --git a/chromecast/media/cma/pipeline/av_pipeline_impl.h b/chromecast/media/cma/pipeline/av_pipeline_impl.h
index d8f752263a8781913d167acdc209e8cef5d72248..b9293b94318e228027ba7b1e684ec16950386bda 100644
--- a/chromecast/media/cma/pipeline/av_pipeline_impl.h
+++ b/chromecast/media/cma/pipeline/av_pipeline_impl.h
@@ -172,6 +172,10 @@ class AvPipelineImpl : MediaPipelineBackend::Decoder::Delegate {
base::WeakPtr<AvPipelineImpl> weak_this_;
base::WeakPtrFactory<AvPipelineImpl> weak_factory_;
+ // Special weak factory used for asynchronous decryption. This allows us to
+ // cancel pending asynchronous decryption (by invalidating this factory's weak
+ // ptrs) without affecting other bound callbacks.
+ base::WeakPtrFactory<AvPipelineImpl> decrypt_weak_factory_;
DISALLOW_COPY_AND_ASSIGN(AvPipelineImpl);
};
« no previous file with comments | « no previous file | chromecast/media/cma/pipeline/av_pipeline_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698