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

Unified Diff: media/audio/audio_output_proxy.h

Issue 2921033002: Replace deprecated base::NonThreadSafe in /media/audio in favor of SequenceChecker. (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/audio/audio_output_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_output_proxy.h
diff --git a/media/audio/audio_output_proxy.h b/media/audio/audio_output_proxy.h
index 16a062824ea55d81aaf86c00dea8907d9307ef3f..d68622f84b6412b830528690ee201a0175006075 100644
--- a/media/audio/audio_output_proxy.h
+++ b/media/audio/audio_output_proxy.h
@@ -8,7 +8,7 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/sequence_checker.h"
#include "media/audio/audio_io.h"
#include "media/base/audio_parameters.h"
@@ -24,9 +24,7 @@ class AudioOutputDispatcher;
//
// AudioOutputProxy uses AudioOutputDispatcher to open and close
// physical output streams.
-class MEDIA_EXPORT AudioOutputProxy
- : public AudioOutputStream,
- public NON_EXPORTED_BASE(base::NonThreadSafe) {
+class MEDIA_EXPORT AudioOutputProxy : public AudioOutputStream {
public:
// Caller keeps ownership of |dispatcher|.
explicit AudioOutputProxy(base::WeakPtr<AudioOutputDispatcher> dispatcher);
@@ -62,6 +60,8 @@ class MEDIA_EXPORT AudioOutputProxy
// is stopped, and then started again.
double volume_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
DISALLOW_COPY_AND_ASSIGN(AudioOutputProxy);
};
« no previous file with comments | « no previous file | media/audio/audio_output_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698