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

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

Issue 1505353007: Disable enumeration caching for output devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | content/browser/renderer_host/media/audio_output_device_enumerator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/media/audio_output_device_enumerator.h
diff --git a/content/browser/renderer_host/media/audio_output_device_enumerator.h b/content/browser/renderer_host/media/audio_output_device_enumerator.h
index 9ca251ed3dbaca98afa3395b91bd1f443bfc7f0e..740e9c64f1e068a2e88c3996346a179f8ea40434 100644
--- a/content/browser/renderer_host/media/audio_output_device_enumerator.h
+++ b/content/browser/renderer_host/media/audio_output_device_enumerator.h
@@ -72,6 +72,10 @@ class CONTENT_EXPORT AudioOutputDeviceEnumerator {
// Sets the cache policy.
void SetCachePolicy(CachePolicy cache_policy);
+ // Returns true if the caching policy is different from
+ // CACHE_POLICY_NO_CACHING, false otherwise.
+ bool IsCacheEnabled();
+
private:
void InitializeOnIOThread();
void DoEnumerateDevices();
« no previous file with comments | « no previous file | content/browser/renderer_host/media/audio_output_device_enumerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698