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

Unified Diff: media/audio/audio_input_controller.h

Issue 10067035: RefCounted types should not have public destructors, media/ and gpu/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 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 | « gpu/command_buffer/service/query_manager.cc ('k') | media/audio/audio_output_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_input_controller.h
diff --git a/media/audio/audio_input_controller.h b/media/audio/audio_input_controller.h
index cb41270e246e37a31a8ce06d2f521032b7eb1231..200e0e435a5f10e5f15668b178975c5b861be347 100644
--- a/media/audio/audio_input_controller.h
+++ b/media/audio/audio_input_controller.h
@@ -117,8 +117,6 @@ class MEDIA_EXPORT AudioInputController
virtual ~Factory() {}
};
- virtual ~AudioInputController();
-
// Factory method for creating an AudioInputController.
// The audio device will be created on the audio thread, and when that is
// done, the event handler will receive an OnCreated() call from that same
@@ -181,6 +179,8 @@ class MEDIA_EXPORT AudioInputController
}
protected:
+ friend class base::RefCountedThreadSafe<AudioInputController>;
+
// Internal state of the source.
enum State {
kEmpty,
@@ -191,6 +191,7 @@ class MEDIA_EXPORT AudioInputController
};
AudioInputController(EventHandler* handler, SyncWriter* sync_writer);
+ virtual ~AudioInputController();
// Methods called on the audio thread (owned by the AudioManager).
void DoCreate(AudioManager* audio_manager, const AudioParameters& params,
« no previous file with comments | « gpu/command_buffer/service/query_manager.cc ('k') | media/audio/audio_output_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698