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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/id_map.h" | 9 #include "base/id_map.h" |
10 #include "base/process/kill.h" | 10 #include "base/process/kill.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 88 |
89 // Called when a received message cannot be decoded. | 89 // Called when a received message cannot be decoded. |
90 virtual void ReceivedBadMessage() = 0; | 90 virtual void ReceivedBadMessage() = 0; |
91 | 91 |
92 // Track the count of visible widgets. Called by listeners to register and | 92 // Track the count of visible widgets. Called by listeners to register and |
93 // unregister visibility. | 93 // unregister visibility. |
94 virtual void WidgetRestored() = 0; | 94 virtual void WidgetRestored() = 0; |
95 virtual void WidgetHidden() = 0; | 95 virtual void WidgetHidden() = 0; |
96 virtual int VisibleWidgetCount() const = 0; | 96 virtual int VisibleWidgetCount() const = 0; |
97 | 97 |
98 // Indicates whether the current RenderProcessHost associated with a guest | 98 // Indicates whether the current RenderProcessHost is associated with an |
99 // renderer process. | 99 // isolated guest renderer process. Not all guest renderers are created equal. |
100 virtual bool IsGuest() const = 0; | 100 // A guest, as indicated by BrowserPluginGuest::IsGuest, may coexist with |
| 101 // other non-guest renderers in the same process if IsIsolatedGuest is false. |
| 102 virtual bool IsIsolatedGuest() const = 0; |
101 | 103 |
102 // Returns the storage partition associated with this process. | 104 // Returns the storage partition associated with this process. |
103 // | 105 // |
104 // TODO(nasko): Remove this function from the public API once | 106 // TODO(nasko): Remove this function from the public API once |
105 // URLRequestContextGetter's creation is moved into StoragePartition. | 107 // URLRequestContextGetter's creation is moved into StoragePartition. |
106 // http://crbug.com/158595 | 108 // http://crbug.com/158595 |
107 virtual StoragePartition* GetStoragePartition() const = 0; | 109 virtual StoragePartition* GetStoragePartition() const = 0; |
108 | 110 |
109 // Try to shutdown the associated renderer process as fast as possible. | 111 // Try to shutdown the associated renderer process as fast as possible. |
110 // If this renderer has any RenderViews with unload handlers, then this | 112 // If this renderer has any RenderViews with unload handlers, then this |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 static void SetMaxRendererProcessCount(size_t count); | 268 static void SetMaxRendererProcessCount(size_t count); |
267 | 269 |
268 // Returns the current max number of renderer processes used by the content | 270 // Returns the current max number of renderer processes used by the content |
269 // module. | 271 // module. |
270 static size_t GetMaxRendererProcessCount(); | 272 static size_t GetMaxRendererProcessCount(); |
271 }; | 273 }; |
272 | 274 |
273 } // namespace content. | 275 } // namespace content. |
274 | 276 |
275 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 277 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
OLD | NEW |