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

Side by Side Diff: content/public/browser/render_process_host.h

Issue 1214883004: Fixed the audio backgrounding bug (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment change Created 5 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // bad_message::BadMessageReceived() or an equivalent method outside of the 93 // bad_message::BadMessageReceived() or an equivalent method outside of the
94 // content module. 94 // content module.
95 virtual void ShutdownForBadMessage() = 0; 95 virtual void ShutdownForBadMessage() = 0;
96 96
97 // Track the count of visible widgets. Called by listeners to register and 97 // Track the count of visible widgets. Called by listeners to register and
98 // unregister visibility. 98 // unregister visibility.
99 virtual void WidgetRestored() = 0; 99 virtual void WidgetRestored() = 0;
100 virtual void WidgetHidden() = 0; 100 virtual void WidgetHidden() = 0;
101 virtual int VisibleWidgetCount() const = 0; 101 virtual int VisibleWidgetCount() const = 0;
102 102
103 // Called when no audio streams remain for this render process host. Must be
104 // called on the UI thread.
ncarter (slow) 2015/07/06 21:53:57 All the methods of this class must be called on th
sebsg 2015/08/02 16:44:23 Done.
105 virtual void AudioStopped() = 0;
106
107 // Called when a first audio stream has started for this render process host.
108 // Must be called on the UI thread.
109 virtual void AudioStarted() = 0;
110
103 // Indicates whether the current RenderProcessHost is exclusively hosting 111 // Indicates whether the current RenderProcessHost is exclusively hosting
104 // guest RenderFrames. Not all guest RenderFrames are created equal. A guest, 112 // guest RenderFrames. Not all guest RenderFrames are created equal. A guest,
105 // as indicated by BrowserPluginGuest::IsGuest, may coexist with other 113 // as indicated by BrowserPluginGuest::IsGuest, may coexist with other
106 // non-guest RenderFrames in the same process if IsForGuestsOnly() is false. 114 // non-guest RenderFrames in the same process if IsForGuestsOnly() is false.
107 virtual bool IsForGuestsOnly() const = 0; 115 virtual bool IsForGuestsOnly() const = 0;
108 116
109 // Returns the storage partition associated with this process. 117 // Returns the storage partition associated with this process.
110 // 118 //
111 // TODO(nasko): Remove this function from the public API once 119 // TODO(nasko): Remove this function from the public API once
112 // URLRequestContextGetter's creation is moved into StoragePartition. 120 // URLRequestContextGetter's creation is moved into StoragePartition.
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 static void SetMaxRendererProcessCount(size_t count); 342 static void SetMaxRendererProcessCount(size_t count);
335 343
336 // Returns the current maximum number of renderer process hosts kept by the 344 // Returns the current maximum number of renderer process hosts kept by the
337 // content module. 345 // content module.
338 static size_t GetMaxRendererProcessCount(); 346 static size_t GetMaxRendererProcessCount();
339 }; 347 };
340 348
341 } // namespace content. 349 } // namespace content.
342 350
343 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 351 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698