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

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

Issue 2383473002: [scheduler] Teach scheduler about audio state (Closed)
Patch Set: Reverted DEPS Created 4 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 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // content module. 97 // content module.
98 virtual void ShutdownForBadMessage() = 0; 98 virtual void ShutdownForBadMessage() = 0;
99 99
100 // Track the count of visible widgets. Called by listeners to register and 100 // Track the count of visible widgets. Called by listeners to register and
101 // unregister visibility. 101 // unregister visibility.
102 virtual void WidgetRestored() = 0; 102 virtual void WidgetRestored() = 0;
103 virtual void WidgetHidden() = 0; 103 virtual void WidgetHidden() = 0;
104 virtual int VisibleWidgetCount() const = 0; 104 virtual int VisibleWidgetCount() const = 0;
105 105
106 // Called when the audio state changes for this render process host. 106 // Called when the audio state changes for this render process host.
107 virtual void AudioStateChanged() = 0; 107 virtual void AudioStateChanged(bool is_audio_playing) = 0;
108 108
109 // Indicates whether the current RenderProcessHost is exclusively hosting 109 // Indicates whether the current RenderProcessHost is exclusively hosting
110 // guest RenderFrames. Not all guest RenderFrames are created equal. A guest, 110 // guest RenderFrames. Not all guest RenderFrames are created equal. A guest,
111 // as indicated by BrowserPluginGuest::IsGuest, may coexist with other 111 // as indicated by BrowserPluginGuest::IsGuest, may coexist with other
112 // non-guest RenderFrames in the same process if IsForGuestsOnly() is false. 112 // non-guest RenderFrames in the same process if IsForGuestsOnly() is false.
113 virtual bool IsForGuestsOnly() const = 0; 113 virtual bool IsForGuestsOnly() const = 0;
114 114
115 // Returns the storage partition associated with this process. 115 // Returns the storage partition associated with this process.
116 virtual StoragePartition* GetStoragePartition() const = 0; 116 virtual StoragePartition* GetStoragePartition() const = 0;
117 117
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 static void SetMaxRendererProcessCount(size_t count); 372 static void SetMaxRendererProcessCount(size_t count);
373 373
374 // Returns the current maximum number of renderer process hosts kept by the 374 // Returns the current maximum number of renderer process hosts kept by the
375 // content module. 375 // content module.
376 static size_t GetMaxRendererProcessCount(); 376 static size_t GetMaxRendererProcessCount();
377 }; 377 };
378 378
379 } // namespace content. 379 } // namespace content.
380 380
381 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 381 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698