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

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

Issue 2822123002: Avoid log spam in AudioSyncReader. (Closed)
Patch Set: Fix awkward comment phrasing. 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
« no previous file with comments | « no previous file | content/browser/renderer_host/media/audio_input_sync_writer.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_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..a65f900897f34af54b303dab43e7ba32ed923bd3 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_;
+ // Denotes that the most recent socket error has been logged. 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.
« no previous file with comments | « no previous file | content/browser/renderer_host/media/audio_input_sync_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698