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

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

Issue 1383123003: Revert of Fixed the audio backgrounding bug (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 d05bd3ed2676e51ab09aac5e54dcc762d0b556c6..a648d2db63cb540bf3adb919138de5113497745c 100644
--- a/content/browser/renderer_host/render_process_host_impl.h
+++ b/content/browser/renderer_host/render_process_host_impl.h
@@ -113,7 +113,6 @@
void WidgetRestored() override;
void WidgetHidden() override;
int VisibleWidgetCount() const override;
- void AudioStateChanged() override;
bool IsForGuestsOnly() const override;
StoragePartition* GetStoragePartition() const override;
bool Shutdown(int exit_code, bool wait) override;
@@ -318,10 +317,8 @@
const base::CommandLine& browser_cmd,
base::CommandLine* renderer_cmd) const;
- // Inspects the current object state and sets/removes background priority if
- // appropriate. Should be called after any of the involved data members
- // change.
- void UpdateProcessPriority();
+ // Callers can reduce the RenderProcess' priority.
+ void SetBackgrounded(bool backgrounded);
// Handle termination of our process.
void ProcessDied(bool already_dead, RendererClosedDetails* known_details);
@@ -353,9 +350,8 @@
// backgrounded.
int32 visible_widgets_;
- // Whether this process currently has backgrounded priority. Tracked so that
- // UpdateProcessPriority() can avoid redundantly setting the priority.
- bool is_process_backgrounded_;
+ // Does this process have backgrounded priority.
+ bool backgrounded_;
// Used to allow a RenderWidgetHost to intercept various messages on the
// IO thread.
« no previous file with comments | « content/browser/renderer_host/media/audio_renderer_host.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698