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

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

Issue 2822123002: Avoid log spam in AudioSyncReader. (Closed)
Patch Set: Created 3 years, 8 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_input_sync_writer.h
diff --git a/content/browser/renderer_host/media/audio_input_sync_writer.h b/content/browser/renderer_host/media/audio_input_sync_writer.h
index 880e49c2fc9e9b985f1adb1b8ea02ced5ccc6f9a..2eec1616cf5d376be3505afcaba223487acd6947 100644
--- a/content/browser/renderer_host/media/audio_input_sync_writer.h
+++ b/content/browser/renderer_host/media/audio_input_sync_writer.h
@@ -10,6 +10,7 @@
#include <deque>
#include <memory>
+#include <string>
#include <vector>
#include "base/gtest_prod_util.h"
@@ -142,6 +143,10 @@ class CONTENT_EXPORT AudioInputSyncWriter
// the fifo or the socket buffer being full.
size_t write_error_count_;
+ // True if an error has been reported for sync socket sends. Used to avoid
+ // log spam.
+ bool had_socket_error_;
+
// Counts the fifo writes and errors we get during renderer process teardown
// so that we can account for that (subtract) when we calculate the overall
// counts.

Powered by Google App Engine
This is Rietveld 408576698