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

Unified Diff: content/browser/renderer_host/render_process_host_impl.h

Issue 1214883004: Fixed the audio backgrounding bug (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a check to null before calling the render_process_host Created 5 years, 6 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/render_process_host_impl.h
diff --git a/content/browser/renderer_host/render_process_host_impl.h b/content/browser/renderer_host/render_process_host_impl.h
index 8937fd1e561d188c12005ef4fa3f2161b7cfcb6d..a82895ce7e1b509cde2aa2c6c9f22dbc54e8ced1 100644
--- a/content/browser/renderer_host/render_process_host_impl.h
+++ b/content/browser/renderer_host/render_process_host_impl.h
@@ -112,6 +112,8 @@ class CONTENT_EXPORT RenderProcessHostImpl
void WidgetRestored() override;
void WidgetHidden() override;
int VisibleWidgetCount() const override;
+ void AudioStopped() override;
+ void AudioStarted() override;
bool IsForGuestsOnly() const override;
StoragePartition* GetStoragePartition() const override;
bool Shutdown(int exit_code, bool wait) override;
@@ -330,6 +332,7 @@ class CONTENT_EXPORT RenderProcessHostImpl
base::CommandLine* renderer_cmd) const;
// Callers can reduce the RenderProcess' priority.
+ // Must be called from the IO thread.
void SetBackgrounded(bool backgrounded);
// Handle termination of our process.

Powered by Google App Engine
This is Rietveld 408576698