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

Unified Diff: media/audio/sounds/audio_stream_handler.h

Issue 2914593002: 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 | « media/audio/alsa/alsa_output.cc ('k') | media/audio/sounds/audio_stream_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/sounds/audio_stream_handler.h
diff --git a/media/audio/sounds/audio_stream_handler.h b/media/audio/sounds/audio_stream_handler.h
index 009021fd171b7c265433fd437ca86aebaae27169..0e1de61be4c8566ab6a43e1a94eda836446b8a91 100644
--- a/media/audio/sounds/audio_stream_handler.h
+++ b/media/audio/sounds/audio_stream_handler.h
@@ -11,8 +11,8 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
+#include "base/sequence_checker.h"
#include "base/strings/string_piece.h"
-#include "base/threading/non_thread_safe.h"
#include "base/time/time.h"
#include "media/audio/audio_io.h"
#include "media/base/audio_parameters.h"
@@ -21,7 +21,7 @@
namespace media {
// This class sends a sound to the audio manager.
-class MEDIA_EXPORT AudioStreamHandler : public base::NonThreadSafe {
+class MEDIA_EXPORT AudioStreamHandler {
public:
class TestObserver {
public:
@@ -71,6 +71,8 @@ class MEDIA_EXPORT AudioStreamHandler : public base::NonThreadSafe {
base::TimeDelta duration_;
std::unique_ptr<AudioStreamContainer> stream_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
DISALLOW_COPY_AND_ASSIGN(AudioStreamHandler);
};
« no previous file with comments | « media/audio/alsa/alsa_output.cc ('k') | media/audio/sounds/audio_stream_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698