OLD | NEW |
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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 // If |crash_report_mode| is GENERATE_CRASH_DUMP, then a browser crash dump | 113 // If |crash_report_mode| is GENERATE_CRASH_DUMP, then a browser crash dump |
114 // will be reported as well. | 114 // will be reported as well. |
115 virtual void ShutdownForBadMessage(CrashReportMode crash_report_mode) = 0; | 115 virtual void ShutdownForBadMessage(CrashReportMode crash_report_mode) = 0; |
116 | 116 |
117 // Track the count of visible widgets. Called by listeners to register and | 117 // Track the count of visible widgets. Called by listeners to register and |
118 // unregister visibility. | 118 // unregister visibility. |
119 virtual void WidgetRestored() = 0; | 119 virtual void WidgetRestored() = 0; |
120 virtual void WidgetHidden() = 0; | 120 virtual void WidgetHidden() = 0; |
121 virtual int VisibleWidgetCount() const = 0; | 121 virtual int VisibleWidgetCount() const = 0; |
122 | 122 |
123 // Called when the audio state changes for this render process host. | |
124 virtual void AudioStateChanged() = 0; | |
125 | |
126 // Indicates whether the current RenderProcessHost is exclusively hosting | 123 // Indicates whether the current RenderProcessHost is exclusively hosting |
127 // guest RenderFrames. Not all guest RenderFrames are created equal. A guest, | 124 // guest RenderFrames. Not all guest RenderFrames are created equal. A guest, |
128 // as indicated by BrowserPluginGuest::IsGuest, may coexist with other | 125 // as indicated by BrowserPluginGuest::IsGuest, may coexist with other |
129 // non-guest RenderFrames in the same process if IsForGuestsOnly() is false. | 126 // non-guest RenderFrames in the same process if IsForGuestsOnly() is false. |
130 virtual bool IsForGuestsOnly() const = 0; | 127 virtual bool IsForGuestsOnly() const = 0; |
131 | 128 |
132 // Returns the storage partition associated with this process. | 129 // Returns the storage partition associated with this process. |
133 virtual StoragePartition* GetStoragePartition() const = 0; | 130 virtual StoragePartition* GetStoragePartition() const = 0; |
134 | 131 |
135 // Try to shut down the associated renderer process without running unload | 132 // Try to shut down the associated renderer process without running unload |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 static void SetMaxRendererProcessCount(size_t count); | 405 static void SetMaxRendererProcessCount(size_t count); |
409 | 406 |
410 // Returns the current maximum number of renderer process hosts kept by the | 407 // Returns the current maximum number of renderer process hosts kept by the |
411 // content module. | 408 // content module. |
412 static size_t GetMaxRendererProcessCount(); | 409 static size_t GetMaxRendererProcessCount(); |
413 }; | 410 }; |
414 | 411 |
415 } // namespace content. | 412 } // namespace content. |
416 | 413 |
417 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 414 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
OLD | NEW |