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

Unified Diff: content/browser/renderer_host/media/audio_renderer_host.h

Issue 2869733005: Convert some audio code to OnceCallback. (Closed)
Patch Set: Rebase, comments on unretained. 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
Index: content/browser/renderer_host/media/audio_renderer_host.h
diff --git a/content/browser/renderer_host/media/audio_renderer_host.h b/content/browser/renderer_host/media/audio_renderer_host.h
index 740225affe7397506afbf26a96458b2035f2b050..3590111af2d9343cccf11dd0d8f75896d01a3cc7 100644
--- a/content/browser/renderer_host/media/audio_renderer_host.h
+++ b/content/browser/renderer_host/media/audio_renderer_host.h
@@ -103,10 +103,6 @@ class CONTENT_EXPORT AudioRendererHost
FRIEND_TEST_ALL_PREFIXES(AudioRendererHostTest, CreateMockStream);
FRIEND_TEST_ALL_PREFIXES(AudioRendererHostTest, MockStreamDataConversation);
- // Internal callback type for access requests to output devices.
- // |have_access| is true only if there is permission to access the device.
- typedef base::Callback<void(bool have_access)> OutputDeviceAccessCB;
-
using AudioOutputDelegateVector =
std::vector<std::unique_ptr<media::AudioOutputDelegate>>;
@@ -116,7 +112,7 @@ class CONTENT_EXPORT AudioRendererHost
using ValidateRenderFrameIdFunction =
void (*)(int render_process_id,
int render_frame_id,
- const base::Callback<void(bool)>& callback);
+ base::OnceCallback<void(bool)> callback);
~AudioRendererHost() override;

Powered by Google App Engine
This is Rietveld 408576698