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

Unified Diff: content/browser/media/media_devices_permission_checker.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
« no previous file with comments | « no previous file | content/browser/media/media_devices_permission_checker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/media/media_devices_permission_checker.h
diff --git a/content/browser/media/media_devices_permission_checker.h b/content/browser/media/media_devices_permission_checker.h
index 1e4d22fbe339f3c5a328b1d1558e329cbe160e62..babbf971f26fb8ea21aa941d4dc433b54d336af6 100644
--- a/content/browser/media/media_devices_permission_checker.h
+++ b/content/browser/media/media_devices_permission_checker.h
@@ -40,7 +40,7 @@ class CONTENT_EXPORT MediaDevicesPermissionChecker {
void CheckPermission(MediaDeviceType device_type,
int render_process_id,
int render_frame_id,
- const base::Callback<void(bool)>& callback) const;
+ base::OnceCallback<void(bool)> callback) const;
// Checks if the origin associated to a render frame identified by
// |render_process_id| and |render_frame_id| is allowed to access the media
@@ -55,7 +55,7 @@ class CONTENT_EXPORT MediaDevicesPermissionChecker {
MediaDevicesManager::BoolDeviceTypes requested_device_types,
int render_process_id,
int render_frame_id,
- const base::Callback<void(const MediaDevicesManager::BoolDeviceTypes&)>&
+ base::OnceCallback<void(const MediaDevicesManager::BoolDeviceTypes&)>
callback) const;
private:
« no previous file with comments | « no previous file | content/browser/media/media_devices_permission_checker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698