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

Unified Diff: media/cast/cast_environment.h

Issue 145443005: Fixes for memory and threading issues in cast (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compile Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/cast/audio_sender/audio_sender_unittest.cc ('k') | media/cast/cast_environment.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/cast_environment.h
diff --git a/media/cast/cast_environment.h b/media/cast/cast_environment.h
index 31e4f50f1caa3285ed3347b2e6e5ab9ca61bf524..f7f9b7e210701e2ae6414e1a2cf4e43ecb1fe031 100644
--- a/media/cast/cast_environment.h
+++ b/media/cast/cast_environment.h
@@ -38,7 +38,7 @@ class CastEnvironment : public base::RefCountedThreadSafe<CastEnvironment> {
TRANSPORT,
};
- CastEnvironment(base::TickClock* clock,
+ CastEnvironment(scoped_ptr<base::TickClock> clock,
scoped_refptr<base::TaskRunner> main_thread_proxy,
scoped_refptr<base::TaskRunner> audio_encode_thread_proxy,
scoped_refptr<base::TaskRunner> audio_decode_thread_proxy,
@@ -77,7 +77,7 @@ class CastEnvironment : public base::RefCountedThreadSafe<CastEnvironment> {
private:
friend class base::RefCountedThreadSafe<CastEnvironment>;
- base::TickClock* const clock_; // Not owned by this class.
+ scoped_ptr<base::TickClock> clock_;
scoped_refptr<base::TaskRunner> main_thread_proxy_;
scoped_refptr<base::TaskRunner> audio_encode_thread_proxy_;
scoped_refptr<base::TaskRunner> audio_decode_thread_proxy_;
« no previous file with comments | « media/cast/audio_sender/audio_sender_unittest.cc ('k') | media/cast/cast_environment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698