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

Side by Side Diff: content/public/browser/render_process_host.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 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // bad_message::BadMessageReceived() or an equivalent method outside of the 92 // bad_message::BadMessageReceived() or an equivalent method outside of the
93 // content module. 93 // content module.
94 virtual void ShutdownForBadMessage() = 0; 94 virtual void ShutdownForBadMessage() = 0;
95 95
96 // Track the count of visible widgets. Called by listeners to register and 96 // Track the count of visible widgets. Called by listeners to register and
97 // unregister visibility. 97 // unregister visibility.
98 virtual void WidgetRestored() = 0; 98 virtual void WidgetRestored() = 0;
99 virtual void WidgetHidden() = 0; 99 virtual void WidgetHidden() = 0;
100 virtual int VisibleWidgetCount() const = 0; 100 virtual int VisibleWidgetCount() const = 0;
101 101
102 // Called when the audio state changes for this render process host.
103 virtual void AudioStateChanged() = 0;
104
105 // Indicates whether the current RenderProcessHost is exclusively hosting 102 // Indicates whether the current RenderProcessHost is exclusively hosting
106 // guest RenderFrames. Not all guest RenderFrames are created equal. A guest, 103 // guest RenderFrames. Not all guest RenderFrames are created equal. A guest,
107 // as indicated by BrowserPluginGuest::IsGuest, may coexist with other 104 // as indicated by BrowserPluginGuest::IsGuest, may coexist with other
108 // non-guest RenderFrames in the same process if IsForGuestsOnly() is false. 105 // non-guest RenderFrames in the same process if IsForGuestsOnly() is false.
109 virtual bool IsForGuestsOnly() const = 0; 106 virtual bool IsForGuestsOnly() const = 0;
110 107
111 // Returns the storage partition associated with this process. 108 // Returns the storage partition associated with this process.
112 // 109 //
113 // TODO(nasko): Remove this function from the public API once 110 // TODO(nasko): Remove this function from the public API once
114 // URLRequestContextGetter's creation is moved into StoragePartition. 111 // URLRequestContextGetter's creation is moved into StoragePartition.
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 static void SetMaxRendererProcessCount(size_t count); 345 static void SetMaxRendererProcessCount(size_t count);
349 346
350 // Returns the current maximum number of renderer process hosts kept by the 347 // Returns the current maximum number of renderer process hosts kept by the
351 // content module. 348 // content module.
352 static size_t GetMaxRendererProcessCount(); 349 static size_t GetMaxRendererProcessCount();
353 }; 350 };
354 351
355 } // namespace content. 352 } // namespace content.
356 353
357 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 354 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/public/test/mock_render_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698