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

Unified Diff: media/audio/audio_output_proxy.h

Issue 2570923002: Makes AudioOutputDispatcher non-ref-counted. (Closed)
Patch Set: Created 4 years 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
Index: media/audio/audio_output_proxy.h
diff --git a/media/audio/audio_output_proxy.h b/media/audio/audio_output_proxy.h
index 8a5aab09f1559d754f2f152a958e2543cc34f4e7..0b358087348f307db5c98da281417a7048e66d1c 100644
--- a/media/audio/audio_output_proxy.h
+++ b/media/audio/audio_output_proxy.h
@@ -7,7 +7,6 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
-#include "base/memory/ref_counted.h"
#include "base/threading/non_thread_safe.h"
#include "media/audio/audio_io.h"
#include "media/base/audio_parameters.h"
@@ -40,7 +39,7 @@ class MEDIA_EXPORT AudioOutputProxy
void Close() override;
AudioOutputDispatcher* get_dispatcher_for_testing() const {
- return dispatcher_.get();
+ return dispatcher_;
}
private:
@@ -55,7 +54,7 @@ class MEDIA_EXPORT AudioOutputProxy
~AudioOutputProxy() override;
- scoped_refptr<AudioOutputDispatcher> dispatcher_;
+ AudioOutputDispatcher* dispatcher_;
State state_;
// Need to save volume here, so that we can restore it in case the stream

Powered by Google App Engine
This is Rietveld 408576698